Page 1 of 1

Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLVED)

Posted: Sat Dec 10, 2011 11:23 am
by Subito Piano
This took DAYS....so i thought i'd leave this for the next chap (or lady) going down this road...my setup is listed but hopefully it will work for other hardware and versions of Mint/Ubuntu/Who Knows What....

Installing Mint 9 (Ubuntu 10.04 LTS) on a friend's Acer Aspire 3640 with the dreaded Atheros wifi (AR2413 802.11bg in this case), the native ath5k driver worked -- only a little. I could use it at home; i could use it at work for exactly ONE day including several restarts, then it would show a connection but i couldn't load any web pages. I installed madwifi according to the directions here (reprinted below), installed WiCD, and finally searched Synaptic for "Atheros" and downloaded everything i didn't already have -- in my case, two packages: hostapd (which i think was the one i needed) and collectd-core. You might need to download more packages that are found by searching for "Atheros," idk...

After doing all this -- finally reached success, i can connect at work, at another network that failed before, and also at a local hotspot -- this includes open, WEP-encrypted, and WPA 1/2-encrypted networks.

Hope this helps somebody else!
------------------------------------------
Here are drpjkurian's instructions from the above link, in case it disappears...(many thanks, drpjkurian!!)
Hi guys in this thread you will find the instructions to install Madwifi drivers for Atheros wireless cards. Please follow the instructions to the word.
Open the 'terminal' by navigating through Applications-->Accessories--> Terminal
Now type the following commands in terminal
1.

Code: Select all

sudo nano /etc/apt/sources.list
From there make sure you uncomment anything that starts with "deb" in there. So changer it from "#deb" to "deb" Something along thoes lines. To exit and save hit "CTRL+X" the answer "YES" to do you want to save, then finally hit "ENTER"
2.

Code: Select all

sudo apt-get update && sudo apt-get upgrade
3.

Code: Select all

sudo apt-get install build-essential libssl-dev
4.

Code: Select all

sudo apt-get install linux-headers-`uname -r`
5.

Code: Select all

sudo apt-get install subversion
6.

Code: Select all

sudo -i
7.

Code: Select all

sudo svn checkout http://svn.madwifi-project.org/madwifi/trunk/ madwifi-ng
8.

Code: Select all

cd madwifi-ng
9.

Code: Select all

echo "" >> /etc/modprobe.d/blacklist
10.

Code: Select all

echo "#Remove To Install MadWIFI Drivers" >> /etc/modprobe.d/blacklist
11.

Code: Select all

echo "blacklist ath9k" >> /etc/modprobe.d/blacklist
12.

Code: Select all

echo "blacklist ath5k" >> /etc/modprobe.d/blacklist
13.

Code: Select all

make && make install
14.

Code: Select all

echo ath_pci >> /etc/modules
Restart your machine. It should work

To install Wicd type the following commands in terminal [or you can use Synaptic]
Code:

Code: Select all

sudo apt-get update
Code:

Code: Select all

sudo apt-get install wicd
Kernal updates of your system will kill your driver. Well no need to worry about that.Just recompile your driver.
For that you open a terminal and type the command
Code:

Code: Select all

sudo -i
and just repeat the steps from No 8. Your madwifi will cone back to life again.

Best of Luck
Dr Kurian
Last edited by drpjkurian; December 6th, 2009 at 04:22 AM..
---------------------------
P.S. - don't forget to check for any other packages related to "Atheros!"

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Sat Dec 10, 2011 12:01 pm
by AlbertP
This works for 2xxx and 5xxx cards but not for 9xxx.

Another fix for slow performance on 2xxx/5xxx, which might be easier:

Code: Select all

sudo sh -c 'echo "options ath5k nohwcrypt" > /etc/modprobe.d/ath5k.conf'
And for 9xxx cards:

Code: Select all

sudo sh -c 'echo "options ath9k nohwcrypt" > /etc/modprobe.d/ath9k.conf'

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Sat Dec 10, 2011 8:39 pm
by TBABill
Proof positive for Albert's post. The nohwcrypt=1 was the fix for my AR9287 Atheros card. I went from about 900Kbps to 1.3Mbps range up to 10Mbps using that fix in a new laptop.

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Sat Dec 10, 2011 8:52 pm
by Subito Piano
Very good. :-) The more solutions to try, the more people get a good working OS. Image

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Wed Jan 25, 2012 3:08 pm
by ChickenPie4Tea
I have Atheros AR5005G and it worked fine from first install (Mint 10)

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Tue Apr 09, 2013 9:42 am
by furious00
Thanks for all of this great info. It's much appreciated!

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Tue Apr 09, 2013 4:28 pm
by Subito Piano
heh, heh -- something i found out AFTER all this nonsense was that there was a time lock on the wifi router between the hours of 8am - 5pm or so -- it broadcasts a signal, your computer says you are connected, but you can't surf the net or download anything -- right when i was trying to test it out!!! Image

So -- if the above info helped anyone, great! -- but idk if i really needed to go through all this... :roll:

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Sun Jan 25, 2015 12:25 pm
by kernster34
AlbertP wrote:This works for 2xxx and 5xxx cards but not for 9xxx.

Another fix for slow performance on 2xxx/5xxx, which might be easier:

Code: Select all

sudo sh -c 'echo "options ath5k nohwcrypt" > /etc/modprobe.d/ath5k.conf'
And for 9xxx cards:

Code: Select all

sudo sh -c 'echo "options ath9k nohwcrypt" > /etc/modprobe.d/ath9k.conf'
This worked so well after failing on so many other try's. You should re-post and call it, try this first. I just typed this in the terminal and restarted the computer and it worked great, thanks so much, user like you keep us surfing! Hats of to Albertp.

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Mon Jan 26, 2015 8:33 am
by JeremyB
kernster34 wrote:
AlbertP wrote:This works for 2xxx and 5xxx cards but not for 9xxx.

Another fix for slow performance on 2xxx/5xxx, which might be easier:

Code: Select all

sudo sh -c 'echo "options ath5k nohwcrypt" > /etc/modprobe.d/ath5k.conf'
And for 9xxx cards:

Code: Select all

sudo sh -c 'echo "options ath9k nohwcrypt" > /etc/modprobe.d/ath9k.conf'
This worked so well after failing on so many other try's. You should re-post and call it, try this first. I just typed this in the terminal and restarted the computer and it worked great, thanks so much, user like you keep us surfing! Hats of to Albertp.
So what is the result of

Code: Select all

cat /sys/module/ath5k/parameters/nohwcrypt

Re: Atheros wifi fix (AR2413 - AR5005G & maybe others) (SOLV

Posted: Mon Jan 26, 2015 9:26 am
by AlbertP
nohwcrypt is a parameter of type bool: it can have two values, 0 (no) or 1 (yes). Such a parameter is set to 'yes' just by mentioning it in the modprobe.d folder's config files. The command you gave, will output Y if the option is set, N if it is not set.

Exception: the ath9k_htc driver. Here it is a parameter of type int, i.e. it only takes numbers. For this driver, which supports a number of Atheros USB devices, nohwcrypt=1 must be specified explicitly.