Open a terminal and run the following commands:
First, you will need to install a few applications to build and compile from source:
sudo apt-get update
sudo apt-get dist-upgrade
apt-get install gcc build-essential linux-headers-generic linux-headers-`uname -r`
Save any unsaved work and reboot. When you sign back in, open a terminal.
Download the needed file:
Now, unzip the tar.gz file:
tar xvfz backports-4.4.2-1.tar.gz
Then, c hange your d irectory to the uncompressed file:
Because there is a Makefile, we will be using the
make command. First, clean the build area by typing this command:
sudo make clean
Then, use this command to build and compile:
You should receive an error and some instructions. Following these instructions to specify the driver you want to build and install by running the following command:
sudo make defconfig-ath9k
Now, run make again:
This time you should receive no errors. This may take some time to finish. When it is done, install the driver with the following command:
sudo make install
You will see some messages saying something about a key. These errors can safely be ignored and should not impact the overall outcome.
Now, run these two commands in an open terminal to load the driver modules at boot time.
echo "ath9k" | sudo tee -a /etc/modules
echo "ath9k_htc" | sudo tee -a /etc/modules
For the next command, I will use
gedit as the text editor but you can use nano, leafpad, kate, mousepad or any text editor.
sudo gedit /etc/rc.local
Now, we need to insert the following two lines before "exit 0" so the last four lines of the file should look exactly like this:
# Declare TP-WN727N USB ID to ath9k_htc module
echo "148F 7601" | tee /sys/bus/usb/drivers/ath9k_htc/new_id
Click on save before exiting out of gedit.
Finally, the script mentions something about updating your initramfs. It might not be needed but these are kernel modules so that's what we will do by running the following command:
sudo update-initramfs -k all -u
and don't forget to update grub when you are done:
Save any unsaved work, leave the device plugged in and reboot for these changes to take effect.