Awesome
ath9k-4W-patch
Tutorial for increasing power of ath9k devices, such as TP-link WN722N, tested on Debian 8
Instructions
Kernel
- Obtain kernel sources:
sudo aptitude install linux-source
or download a tarball from kernel.org (in which case you won't likely be able to directly apply these instructions, however) - Install dev tools:
sudo aptitude install build-essential dpkg-dev xz-utils libncurses5-dev
- Extract the files:
tar xJvf /usr/src/linux-source-3.16.tar.xz && cd linux-source-3.16
- Bring over your existing kernel configuration:
cp /boot/config-3.16.0-4-amd64 .config
- "Fix" the ath9k driver: after obtaining the Linux-3.16.7.patch from here, run
patch -p1 < Linux-3.16.7.patch
- Configure kernel as desired:
make menuconfig
- Compile:
make deb-pkg
- Go up one folder and copy/move the resulting packages
Wireless-regdb
- Install dev tools:
sudo apt-get build-dep wireless-regdb
- Obtain sources:
apt-get source wireless-regdb
- Enter source directory.
- Generate signing key:
make ~/.wireless-regdb-YOURUSERNAMEHERE.key.priv.pem
- Select personal key:
nano debian/rules
, remove "export REGDB_AUTHOR = benh@debian.org" - Remove precompiled database:
make maintainer-clean
- Replace database (db.txt) with the one supplied
make && dpkg-buildpackage -us -uc
- Go up one folder and copy/move the resulting package
CRDA
- Install dev tools:
sudo apt-get build-dep crda
- Obtain sources:
apt-get source crda
- Enter source directory.
- Copy over your public key, USERNAME.key.pub.pem, from wireless-regdb's source directory to the "pubkey" folder inside crda's source
make && dpkg-buildpackage -us -uc
- Go up one folder and copy/move the resulting package
Finally, install all these packages and reboot to use the new kernel.
Good luck!