Thursday, 5 November 2009

Update to the latest ath9k drivers

I tested out the latest 2.6.31 linux kernel on a spare install of ubuntu i had on an old hard drive and noticed that my wifi signal using the ath9k driver had boosted to twice as strong as it was in my normal install of ubuntu that i have but i decided that i didnt want to update the full kernel in my normal install as this can be a bit of a tricky task and usually something gets messed up along the way, instead i just wanted to update to the latest ath9k driver and after a quick search i figured out this is how to do it.

Firstly install the required files to build the drivers.

$ sudo apt-get install build-essential linux-headers-`uname -r`

Now you need to download and extract the latest compat-wireless-2.6.tar.bz2 file from

Now cd into the directory and build the driver

$ cd compat-wireless-2.6 && ./scripts/driver-select ath9k && make

Disconnect your wifi with whatever network manager you use and then carry on to install the driver.

$ sudo make install

Now unload the old drivers and modprobe for the new ones

$ sudo make unload && sudo modprobe ath9k

now you can reconnect with your network manager to your router and when you look at the signal strength hopefully you'll have gained the extra boost in signal that i gained thanks to the guys that work on the drivers.

NOTE: if modprobe on the last step doesnt work then just reboot the system and it will load the drivers for you.

If you want remove the new drivers and go back to using your old ones open a terminal and cd into the drivers folder you extracted and type

$ sudo make uninstall