ath5k should be loaded with nohwcrypt parameter
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | linux (Ubuntu) |
Medium
|
Unassigned | ||
Bug Description
After a lengthy thread, I was able to get to the bottom of my poor web browsing performance in Lucid Beta 2. Basically I kept gettng the "Waiting for <insert site here>..." status on whatever browser I used. Pages would load after a really long time, or sometimes not at all. My laptop uses the AR2413 chipset, which utilizes the ath5k wireless module. We were able to find that loading the module with the nohwcrypt parameter fixed my problem:
sudo modprobe ath5k nohwcrypt
psyke83 from the forums showed me how to automatically load the ath5k module with the said parameter on reboot.
sudo sh -c "echo 'options ath5k nohwcrypt' >/etc/modprobe.
Hopefully this information can help others with similar hardware. Whether this should be a default for Lucid, I am not sure because I don't know if it affects everyone the same. The thread is pasted below for full details of everything I tried to find the solution.
| affects: | ubuntu → linux (Ubuntu) |
| summary: |
- Slow browsing. "Waiting for <site>" Ath5k parameter + ath5k should be loaded with nohwcrypt parameter |
| tags: | added: lucid |
| Jeremy Foshee (jeremyfoshee) wrote : | #1 |
| tags: | added: needs-kernel-logs |
| tags: | added: needs-upstream-testing |
| tags: | added: kj-triage |
| Changed in linux (Ubuntu): | |
| status: | New → Incomplete |
| Lucious Daniels Jr (ladmatic) wrote : | #2 |
I can confirm this issue exists in the latest development release, release candidate fully updated. I also updated to kernel 2.6.34 rc5 and the problem is still present. I am attempting to attach the debug info from the command you gave me, but unfortunately with the problem re-enabled I cannot connect to launchpad. I will keep trying though.
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Triaged |
| importance: | Undecided → Medium |
I also had this problem
and even with this fix listed here i'm stillsuffering slow network traffic
lspci
06:03.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)
PING google.com (209.85.229.99) 56(84) bytes of data.
64 bytes from ww-in-f99.1e100.net (209.85.229.99): icmp_seq=1 ttl=53 time=1346 ms
64 bytes from ww-in-f99.1e100.net (209.85.229.99): icmp_seq=2 ttl=53 time=993 ms
64 bytes from ww-in-f99.1e100.net (209.85.229.99): icmp_seq=3 ttl=53 time=1260 ms
64 bytes from ww-in-f99.1e100.net (209.85.229.99): icmp_seq=4 ttl=53 time=2434 ms
64 bytes from ww-in-f99.1e100.net (209.85.229.99): icmp_seq=5 ttl=53 time=2167 ms
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 8355ms
rtt min/avg/max/mdev = 993.965/
xpd259@Sputnik:~$ sudo iwlist scanning
lo Interface doesn't support scanning.
eth1 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: 00:18:4D:64:52:1C
Cell 02 - Address: 00:1C:DF:85:BF:DB
Cell 03 - Address: 00:18:F6:93:5C:13
...
| Nigel Pugh (nigel-pugh) wrote : | #4 |
I had the same issue right through lucid development. Adding the nohwcrypt option fixed it for me too.
Thanks for getting to the bottom of this Lucious and psyke83... it destroyed my wifi on lucid for a long time!
Toshiba A100-259
uname -a
Linux nigel-laptop 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 GNU/Linux
lspci
00:00.0 Host bridge: ATI Technologies Inc Device 5a31 (rev 01)
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:12.0 IDE interface: ATI Technologies Inc IXP SB400 Serial ATA Controller (rev 80)
00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)
00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)
00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (rev 80)
00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 82)
00:14.1 IDE interface: ATI Technologies Inc IXP SB400 IDE Controller (rev 80)
00:14.2 Audio device: ATI Technologies Inc IXP SB4x0 High Definition Audio Controller (rev 01)
00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge (rev 80)
00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (rev 80)
01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon Xpress 200M]
02:04.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)
02:06.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
02:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/
02:0a.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)
| Peter Ford (peter.ford) wrote : | #5 |
A couple more threads of people affected:
My own post - http://
Another one - http://
Thanks for the workaround Lucious :-)
| Jan-Olof Lindqvist (jan-olof) wrote : | #6 |
Looks like this solved the slow wireless problem for my father on his Toshiba Satellite L30 - 105. Usually he was not able to access webpages with Chrome/Firefox but somehow it worked fine in simpler browsers like Links/Lynx.
09:04.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)
Subsystem: Askey Computer Corp. Device 7094
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 22
Region 0: Memory at c0110000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath5k
Kernel modules: ath5k
| Neldon A (iamthened) wrote : | #7 |
Installed Lucid a week ago. Got all the updates I know of and the issue still remains.
Thanks Lucious!
| Musaraigne (musaraigne) wrote : | #8 |
I still have the same problem on a fully updated Maverick (installed from scratch from the 10.10 CD).
Before learning about this nohwcrypt workaround I did a bit of investigation and found the following: The cause of the high and unpredictable latencies is that packets are dropped depending on their size. According to my tests, packet sizes of the form
size = 128*k + 81 + m
or
size = 128*k + 105 + m
for any k>=2 and 0<=m<=7
are dropped randomly in 90-95% of the cases. Conversely, all other packet sizes work fine.
You can see for yourself if this is true on your system:
ping -M do -s 596 www.google.com
should result in 90% packet loss (because 624 = 128*4 + 105 + 7; the 28 byte difference comes from network headers added by ping)
while
ping -M do -s 597 www.google.com
should result in negligible packet loss.
Hopefully this makes the problem easier to reproduce and analyze!
There are three different workarounds that can solve the problem on my system:
- use the nohwcrypt parameter
- limit the MTU to a value low enough to avoid problematic packet sizes (such as 330 bytes), with "sudo ifconfig wlan0 mtu 330"
- use the madwifi drivers instead of ath5k
| tifff (horst-fiedler) wrote : | #9 |
Installed Maverick a week ago on Siemens Amilo pa 1510 using Atheros AR2413, had same problem: ssh completly unuseable due to packet losses. Thanks Lucious and Musaraigne for very detailed reproducable identification.
| Musaraigne (musaraigne) wrote : | #10 |
What exactly is holding this bug back?
The bug is 1 year old, has a low-impact temporary fix, has been reproduced many times (including duplicates like bug 565892), and makes wifi almost entirely unusable to anyone unaware of the workaround.
| Musaraigne (musaraigne) wrote : | #11 |
Kernel developers are looking into it and may need some testing or feedback:
https:/
I can't do testing myself as the computer on which I encountered the bug was not mine.
| smlx (sml) wrote : | #12 |
The bug I reported, while similar, is not the same as this bug. That one (#565892) is fixed by 2.6.33, as noted in my report.
I tried the ping tests you described in the kernel bug and wasn't able to reproduce your issues. If you have any other tests which can show this bug, please let me know.
Also note that I don't have mount with any special parameters like nohwcrypt. It just works out of the box on my WPA2 (CCMP-
PSK) 802.11G network.
| smlx (sml) wrote : | #13 |
Not mount - modprobe.
| Musaraigne (musaraigne) wrote : | #14 |
Oh yes, my bad, it wasn't a duplicate. However I think that most of the respondents probably suffered from this bug and not the one you described. If you think your bug still needs to be fixed on 2.6.32 feel free to unmark it as a duplicate.
It's very interesting that you don't have the problem with an AR2413, though. I don't have other tests aside from trying other packet sizes, but if you use this computer daily you would quickly notice sluggish performance if you were affected by the problem.
Perhaps the "Subsystem:" line of lspci -vnn could be an indicator:
(scottl, unaffected by the bug)
06:01.0 Ethernet controller [0200]: Atheros Communications Inc. AR2413 802.11bg NIC [168c:001a] (rev 01)
Subsystem: Atheros Communications Inc. Device [168c:2052]
(Jan-Olof Lindqvist and exogenetic, likely affected by the bug)
09:04.0 Ethernet controller [0200]: Atheros Communications Inc. AR2413 802.11bg NIC [168c:001a] (rev 01)
Subsystem: Askey Computer Corp. Device [144f:7094]
That's a small sample size, it would be nice to see if other AR2413 users have the same pattern.
| Danny Wood (danwood76) wrote : | #15 |
I can confirm this is still a bug for the latest maverick.
The nohwcrypt option solves it for me.
lspci -vnn
09:04.0 Ethernet controller [0200]: Atheros Communications Inc. AR2413 802.11bg NIC [168c:001a] (rev 01)
Subsystem: Askey Computer Corp. Device [144f:7094]
Flags: bus master, medium devsel, latency 168, IRQ 22
Memory at c0110000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Kernel driver in use: ath5k
Kernel modules: ath5k
I am affected and have the Askey subsystem, maybe that is an indicator?
| Danny Wood (danwood76) wrote : | #16 |
I meant confirmed in Natty (11.04) not maverick!
| Sander Hogewoning (sjhogewoning) wrote : | #17 |
Same problem with a Toshiba L30-105 (AR2413) since karmic.
same in Natty (11.04)
loading the module with the nohwcrypt parameter fixed the problem
THANKS!
| Nick Kossifidis (mickflemm) wrote : | #18 |
Hello all, I'm one of ath5k's maintainers and would like to thank you for your reports, especially Musaraigne for finding the problematic length range. Sorry for the delay on this bug but we still can't reproduce it on our own AR2413 cards, based also on reports from other users I think we can safely narrow it down to cards made by Askey.
So can you please all verify that this bug is only present on cards made by Askey ? Check out your lspci -v output and let me know.
Again thanks a lot for your reports
| Tommy Trussell (tommy-trussell) wrote : | #19 |
It apparently does NOT affect the system I used when I ticked the "This bug affects me too" and I cannot reproduce it (anymore).
The Acer Aspire 5100-3949 uses an AR2413 manufactured by AMBIT:
"Subsystem: AMBIT Microsystem Corp. Device [1468:0418]" IS NOT AFFECTED BY THIS BUG.
I may have subscribed here before I realized I was seeing Bug #767192 which has been fixed now.
| Lucious Daniels Jr (ladmatic) wrote : | #20 |
My card is indeed an Askey.
02:04.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)
Subsystem: Askey Computer Corp. Device 7094
Flags: bus master, medium devsel, latency 168, IRQ 20
Memory at c0200000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath5k
| Erik (lnchpd-elaan) wrote : | #21 |
My card is an Askey too:
02:04.0 Ethernet controller [0200]: Atheros Communications Inc. AR2413 802.11bg NIC [168c:001a] (rev 01)
Subsystem: Askey Computer Corp. Device [144f:7094]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 17
Region 0: Memory at c0200000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: ath5k
Kernel modules: ath5k
In a Toshiba Sattellite M40-277.
| Adam Lyall (magicmyth) wrote : | #22 |
I've just installed Ubuntu on a old Toshiba Satellite Pro M50 with a ath5k and its exhibiting this problem as well. The workaround with nohwcrypt solves the problem. I won't be able to test this laptop much longer but thought it worth mentioning it too is an Askey built card:
04:02.0 Ethernet controller: Atheros Communications Inc. AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] (rev 01)
Subsystem: Askey Computer Corp. Device 7094
Flags: bus master, medium devsel, latency 168, IRQ 9
Memory at c0200000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Kernel driver in use: ath5k
Kernel modules: ath5k
| brott (gatorstudent20) wrote : | #23 |
This still seems to be an issue in Precise. At least as of Beta 1. How do we get this option enabled by default?
| Erik (lnchpd-elaan) wrote : | #24 |
I guess we don't get it to be hardware encryption disabled by default, as the nohwcrypt parameter is only needed on Askey devices using the ath5k driver, and not on other devices that use the ath5k driver.
Maybe the driver could be made to detect the manufacturer and disable hardware encryption if it is Askey? I don't know enough about the driver to know whether that is possible. Who does?
| Gustavo Azambuja (gazambuja) wrote : | #25 |
Excelent, in my Ubuntu 12.04 beta work like charm!
lspci:
06:01.0 Ethernet controller: Atheros Communications Inc. AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg] (rev 01)
Lucious Daniels Jr, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://
If it remains an issue, could you please run the following command in the development release from a Terminal (Applications-
apport-collect -p linux <replace-
Also, could you please test the latest upstream kernel available (not the daily folder) following https:/
kernel-
kernel-
where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-
This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-
If the mainline kernel does not fix this bug, please add the following tags:
kernel-
kernel-
As well, please remove the tag:
needs-upstream-
Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.
| Changed in linux (Ubuntu): | |
| status: | Triaged → Incomplete |
| SignedAdam (signedadam) wrote : | #28 |
I also have this problem with the "Qualcomm Atheros AR5005G" i've tried two browsers "fire fox" "chrome" both the latest releases, I've had this problem on ubuntu 14.04 and lubuntu 14.04, at the time of typing this, no updates are out, this makes me really sad to see, old systems are not being supported or are being dropped like a rocks, ubuntu would not be where it is today, if it was not for old systems,
| SignedAdam (signedadam) wrote : | #29 |
This is a very very VERY Annoying bug! Which needs sorting out... one of the following, is a fix to the problem, in Ubuntu 14.04
Open terminator and enter one of the following steps
1)
sudo modprobe ath5k nohwcrypt
sudo sh -c "echo 'options ath5k nohwcrypt' >/etc/modprobe.
2)
sudo apt-get remove libnss-mdns
ubuntu 14.04 is newer, when this bug post was posted, it was posted for a older ubuntu, so the problem may get worse, no one seems to have fixed it or cares
SignedAdam, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux
For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https:/
Ubuntu Kernel Team: https:/
Ubuntu Community: https:/
When opening up the new report, please feel free to subscribe me to it.
Thank you for your understanding.
Helpful bug reporting tips:
https:/
| jules (jules-hughes) wrote : | #31 |
I can't believe this bug is already 4 years old. And it's only one file and three words missing per default!
I encountered this bug on 26th April when I was installing a new Ubuntu 14.04 with a friend on his old laptop, since he wanted to move away from XP. So this was one of his first experiences with linux, we nearly had to give up installing, because of the broken network connection. And yet after some searching it was only one (!) command which solved it for us: echo "options ath5k nohwcrypt" | sudo tee -a /etc/modprobe.
So could you please fix this and add /etc/modprobe.
jules, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux
For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https:/
Ubuntu Kernel Team: https:/
Ubuntu Community: https:/
When opening up the new report, please feel free to subscribe me to it.
Thank you for your understanding.
Helpful bug reporting tips:
https:/
| SignedAdam (signedadam) wrote : | #33 |
@penalvch I'm not working full time on ubuntu reporting bugs, but this same issues can be still seen today in " Ubuntu 14.10 Alpha 1" lubuntu and ubuntu 64 bit and 32 bit, unsolved, so if you could report this issue for me, i'd be grateful, the following command is the solution/fix and its a permanent.
type in command line :
sudo modprobe ath5k nohwcrypt
sudo sh -c "echo 'options ath5k nohwcrypt' >/etc/modprobe.
| SignedAdam (signedadam) wrote : | #34 |
I cant believe im saying this..
The problem is still apparent in LUbuntu 16.10
lucky the above commands : sudo modprobe ath5k nohwcrypt
sudo sh -c "echo 'options ath5k nohwcrypt' >/etc/modprobe.
fix it


Hi Lucious,
Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http:// cdimage. ubuntu. com/releases/ . If the issue remains, please run the following command from a Terminal (Applications- >Accessories- >Terminal) . It will automatically gather and attach updated debug information to this report.
apport-collect -p linux 568090
Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https:/ /wiki.ubuntu. com/KernelMainl ineBuilds . Once you've tested the upstream kernel, please remove the 'needs- upstream- testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs- upstream- testing' text. Please let us know your results.
Thanks in advance.
[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]