You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Close within 30 daysIssue will be closed within 30 days unless requested to stay openWaiting for external inputWaiting for a comment from the originator of the issue, or a collaborator.
I have 2 Atheros AR9271 which I use in monitor mode. I get regular kernel panic's on stretch stock and latest hexxeh kernels. Sadly there are no entrys in syslog, so I had to take a photo of my screen:
I know these cards work (only up to two, the third only works with nothing else accessing the usb bus, i.e. with ethernet plugged in it doesn't work anymore) with kernels 4.9.28 and 4.9.35 included in Raspian 2017-06-21 and 2017-07-05, maybe that narrows it down a little for you.
Another thing I noticed is, they don't like to be switched into promiscous mode, sometimes they just stop working then (but the system stays running), I'd try not doing that (in monitor mode, all frames are forwarded to userspace anyway, promisc mode is not needed).
I already discovered the "2 card's only" problem, it's also present on my Linux Mint System, I guess that's a firmware thing :) I don't use promiscous mode and in my case the system totally crashes. It happens completely random, sometimes a few hours, sometimes 1-3 days. The RasPi does nothing other than collecting probe requests, so it doesn't even do some TX, boots straight into a python script.
Hmm. Does the dongle work fine when used as a simple Wifi adaptor? I'd suggest the linux-wireless mailing list might be a better place to get Atheros specific support.
In fact, it's not only one adapter. I have 3 of them from different brands. They all show the same problem. What's really interesting: If you plug in 2 adapters, the kernel module/driver can crash independently, leaving one still working while the other is not. If I let it run long enough, the other one will crash too, resulting in a complete freeze of the RasPi. Sometimes even with colorful graphic glitches on the screen.
Never really tried using them as a Client for a longer period because the RasPi is hardwired.
Are all the adapters using the same chipset, even though different brands?
Colourful graphic glitches during the crash almost certainly means a buffer overrun/random memory writes. Something wrong with the driver. Unfortunately we cannot generally support any old random chipset drivers - it's time consuming enough just supporting the ones built in to the Pi's! If I can find one with the chipset (name some makes) I might have time to take a look, but cannot promise anything.
The Chipset is neither very old nor random. They all use Atheros AR9271 chipset. they are the most common insisde 150 Mbit 2.4 GHz adapters. I use TP-LINK TL-WN722N (only v1 has Atheros, v2 has Realtek), ALFA Network AWUS036NHA and Sophos AP5
Have you tried using them through a powered USB hub?
They might draw too much current out of USB port and create such kind of crashes (seen that with few wifi dongles).
Sorry, "any old" is a English turn of phrase, I don't actually mean old, just any arbitrary chipset.
There are frequent updates to the atheros drivers in the linux wireless mailing list. Whether they apply to these at all I do not know. Might be worth keeping an eye out there to see if there is anything that might help with your problem.
I have this problem on Manjaro. This computer has a wired connection so wifi isn't used. The wifi was turned on so it was constantly browsing available access points for the week it's up. dmesg is spammed with 'link is not ready' messages.
Now I have Cinnamon disable the wifi so no more spamming dmesg.
I think you should try Linux 4.16 (using mainline instead of the foundation kernel would be the best) and if the issue still occurs report it to linux-wireless mailing list.
I ran Manjaro on 4.16 for a week with Atheros disabled and everything was fine. I ran it another week with Atheros enabled but not connected. There was no 'cut here' message but the GUI was sluggish, same freezing browsers problem as had been happening with 4.9 and 4.14. Seems that it has been improved enough to eliminate the 'cut here' message but the problem has not been fixed.
Turns out an Intel Wifi browsing all week also causes sluggish response. That means that the Atheros driver has been fixed and the sluggish response is elsewhere in the wifi stack.
It looks like the 4.16 kernel fixes this. I doubt we will backport but if anyone can point to the change that fixes it, we might be able to cherry-pick.
This issue will be closed within 30 days unless further interactions are posted. If you wish this issue to remain open, please add a comment. A closed issue may be reopened if requested.
Hello, I'm experiencing the same issue with a Raspberry Pi 3 B+ using a very common Atheros USB card ( ALFA AWUS036NHA ).
I did rpi-update of the kernel today but the issue is not fixed. uname -a Linux raspberrypi 4.14.67-v7+ #1139 SMP Wed Aug 29 15:17:05 BST 2018 armv7l GNU/Linux
[11274.305757] ------------[ cut here ]------------
[11274.308588] WARNING: CPU: 0 PID: 0 at net/mac80211/rx.c:629 ieee80211_rx_napi+0x868/0x9dc [mac80211]
[11274.313959] Modules linked in: cmac sha256_generic md4 md5 hmac nls_utf8 cifs ccm arc4 ath9k_htc ath9k_common ath9k_hw ath mac80211 appletalk psnap llc ax25 xt_conntrack iptable_filter ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack brcmfmac brcmutil cfg80211 rfkill i2c_bcm2835 uio_pdrv_genirq fixed uio i2c_dev i2c_bcm2708 snd_bcm2835(C) snd_pcm snd_timer snd ip_tables x_tables ipv6
[11274.329319] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G WC 4.14.67-v7+ #1139
[11274.334187] Hardware name: BCM2835
[11274.336565] [<8010ffd8>] (unwind_backtrace) from [<8010c240>] (show_stack+0x20/0x24)
[11274.341192] [<8010c240>] (show_stack) from [<80787384>] (dump_stack+0xd4/0x118)
[11274.343554] [<80787384>] (dump_stack) from [<8011da6c>] (__warn+0xf8/0x110)
[11274.345889] [<8011da6c>] (__warn) from [<8011db54>] (warn_slowpath_null+0x30/0x38)
[11274.350610] [<8011db54>] (warn_slowpath_null) from [<7f5f8d10>] (ieee80211_rx_napi+0x868/0x9dc [mac80211])
[11274.355400] [<7f5f8d10>] (ieee80211_rx_napi [mac80211]) from [<7f735894>] (ath9k_rx_tasklet+0x160/0x18c [ath9k_htc])
[11274.360099] [<7f735894>] (ath9k_rx_tasklet [ath9k_htc]) from [<80123d34>] (tasklet_action+0x74/0x10c)
[11274.364714] [<80123d34>] (tasklet_action) from [<80101694>] (__do_softirq+0x18c/0x3d8)
[11274.369398] [<80101694>] (__do_softirq) from [<80123808>] (irq_exit+0x108/0x164)
[11274.374202] [<80123808>] (irq_exit) from [<801756d8>] (__handle_domain_irq+0x70/0xc4)
[11274.379171] [<801756d8>] (__handle_domain_irq) from [<80101504>] (bcm2836_arm_irqchip_handle_irq+0xa8/0xac)
[11274.384327] [<80101504>] (bcm2836_arm_irqchip_handle_irq) from [<807a2f7c>] (__irq_svc+0x5c/0x7c)
[11274.389448] Exception stack(0x80c01ef0 to 0x80c01f38)
[11274.392002] 1ee0: 00000000 2d2550dc 3da17000 00000000
[11274.397162] 1f00: 80c00000 80c03dcc 80c03d68 80c882b2 00000001 80b60a30 be5ff9c0 80c01f4c
[11274.402412] 1f20: 80c04174 80c01f40 80108a4c 80108a50 60000013 ffffffff
[11274.405054] [<807a2f7c>] (__irq_svc) from [<80108a50>] (arch_cpu_idle+0x34/0x4c)
[11274.410267] [<80108a50>] (arch_cpu_idle) from [<807a26c4>] (default_idle_call+0x34/0x48)
[11274.415593] [<807a26c4>] (default_idle_call) from [<80161350>] (do_idle+0xd8/0x150)
[11274.420975] [<80161350>] (do_idle) from [<80161664>] (cpu_startup_entry+0x28/0x2c)
[11274.426415] [<80161664>] (cpu_startup_entry) from [<8079c41c>] (rest_init+0xbc/0xc0)
[11274.431960] [<8079c41c>] (rest_init) from [<80b00df8>] (start_kernel+0x3d4/0x3e0)
[11274.437562] ---[ end trace c0f3f54ed3d968d2 ]---
Close within 30 daysIssue will be closed within 30 days unless requested to stay openWaiting for external inputWaiting for a comment from the originator of the issue, or a collaborator.
Activity
rodizio1 commentedon Dec 15, 2017
I know these cards work (only up to two, the third only works with nothing else accessing the usb bus, i.e. with ethernet plugged in it doesn't work anymore) with kernels 4.9.28 and 4.9.35 included in Raspian 2017-06-21 and 2017-07-05, maybe that narrows it down a little for you.
Another thing I noticed is, they don't like to be switched into promiscous mode, sometimes they just stop working then (but the system stays running), I'd try not doing that (in monitor mode, all frames are forwarded to userspace anyway, promisc mode is not needed).
cyablo commentedon Dec 15, 2017
I already discovered the "2 card's only" problem, it's also present on my Linux Mint System, I guess that's a firmware thing :) I don't use promiscous mode and in my case the system totally crashes. It happens completely random, sometimes a few hours, sometimes 1-3 days. The RasPi does nothing other than collecting probe requests, so it doesn't even do some TX, boots straight into a python script.
cyablo commentedon Feb 23, 2018
Bug still present in 4.14.20 Kernel :(
[-]Kernel Panic on 4.9.x with Atheros AR9271[/-][+]Kernel Panic on 4.14.x with Atheros AR9271[/+]cyablo commentedon Mar 20, 2018
Still happening with newest Kernel 4.14. and Firmware (there were some updates lately).
JamesH65 commentedon Apr 20, 2018
Hmm. Does the dongle work fine when used as a simple Wifi adaptor? I'd suggest the linux-wireless mailing list might be a better place to get Atheros specific support.
cyablo commentedon Apr 20, 2018
In fact, it's not only one adapter. I have 3 of them from different brands. They all show the same problem. What's really interesting: If you plug in 2 adapters, the kernel module/driver can crash independently, leaving one still working while the other is not. If I let it run long enough, the other one will crash too, resulting in a complete freeze of the RasPi. Sometimes even with colorful graphic glitches on the screen.
Never really tried using them as a Client for a longer period because the RasPi is hardwired.
JamesH65 commentedon Apr 20, 2018
Are all the adapters using the same chipset, even though different brands?
Colourful graphic glitches during the crash almost certainly means a buffer overrun/random memory writes. Something wrong with the driver. Unfortunately we cannot generally support any old random chipset drivers - it's time consuming enough just supporting the ones built in to the Pi's! If I can find one with the chipset (name some makes) I might have time to take a look, but cannot promise anything.
cyablo commentedon Apr 20, 2018
The Chipset is neither very old nor random. They all use Atheros AR9271 chipset. they are the most common insisde 150 Mbit 2.4 GHz adapters. I use TP-LINK TL-WN722N (only v1 has Atheros, v2 has Realtek), ALFA Network AWUS036NHA and Sophos AP5
macmpi commentedon Apr 21, 2018
Have you tried using them through a powered USB hub?
They might draw too much current out of USB port and create such kind of crashes (seen that with few wifi dongles).
cyablo commentedon Apr 21, 2018
I'm Always using an powered USB Hub. In this Case a Ugreen 4 Port powered by a Huawei USB charger.
JamesH65 commentedon Apr 21, 2018
Sorry, "any old" is a English turn of phrase, I don't actually mean old, just any arbitrary chipset.
There are frequent updates to the atheros drivers in the linux wireless mailing list. Whether they apply to these at all I do not know. Might be worth keeping an eye out there to see if there is anything that might help with your problem.
melyux commentedon May 15, 2018
I'm also having this problem on a Pi Zero.
severach commentedon May 19, 2018
I have this problem on Manjaro. This computer has a wired connection so wifi isn't used. The wifi was turned on so it was constantly browsing available access points for the week it's up. dmesg is spammed with 'link is not ready' messages.
Now I have Cinnamon disable the wifi so no more spamming dmesg.
Activity
cyablo commentedon May 20, 2018
I switched from Atheros to Ralink, problem is gone. So it's def. a firmware/driver problem.
lategoodbye commentedon May 21, 2018
I think you should try Linux 4.16 (using mainline instead of the foundation kernel would be the best) and if the issue still occurs report it to linux-wireless mailing list.
severach commentedon Jun 2, 2018
I ran Manjaro on 4.16 for a week with Atheros disabled and everything was fine. I ran it another week with Atheros enabled but not connected. There was no 'cut here' message but the GUI was sluggish, same freezing browsers problem as had been happening with 4.9 and 4.14. Seems that it has been improved enough to eliminate the 'cut here' message but the problem has not been fixed.
Turns out an Intel Wifi browsing all week also causes sluggish response. That means that the Atheros driver has been fixed and the sluggish response is elsewhere in the wifi stack.
JamesH65 commentedon Jun 27, 2018
It looks like the 4.16 kernel fixes this. I doubt we will backport but if anyone can point to the change that fixes it, we might be able to cherry-pick.
This issue will be closed within 30 days unless further interactions are posted. If you wish this issue to remain open, please add a comment. A closed issue may be reopened if requested.
JamesH65 commentedon Aug 31, 2018
Closing due to lack of activity. Please request to be reopened if you feel this issue is still relevant.
gourry commentedon Sep 2, 2018
Hello, I'm experiencing the same issue with a Raspberry Pi 3 B+ using a very common Atheros USB card ( ALFA AWUS036NHA ).
I did rpi-update of the kernel today but the issue is not fixed.
uname -a Linux raspberrypi 4.14.67-v7+ #1139 SMP Wed Aug 29 15:17:05 BST 2018 armv7l GNU/Linux[11274.305757] ------------[ cut here ]------------
[11274.308588] WARNING: CPU: 0 PID: 0 at net/mac80211/rx.c:629 ieee80211_rx_napi+0x868/0x9dc [mac80211]
[11274.313959] Modules linked in: cmac sha256_generic md4 md5 hmac nls_utf8 cifs ccm arc4 ath9k_htc ath9k_common ath9k_hw ath mac80211 appletalk psnap llc ax25 xt_conntrack iptable_filter ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack brcmfmac brcmutil cfg80211 rfkill i2c_bcm2835 uio_pdrv_genirq fixed uio i2c_dev i2c_bcm2708 snd_bcm2835(C) snd_pcm snd_timer snd ip_tables x_tables ipv6
[11274.329319] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G WC 4.14.67-v7+ #1139
[11274.334187] Hardware name: BCM2835
[11274.336565] [<8010ffd8>] (unwind_backtrace) from [<8010c240>] (show_stack+0x20/0x24)
[11274.341192] [<8010c240>] (show_stack) from [<80787384>] (dump_stack+0xd4/0x118)
[11274.343554] [<80787384>] (dump_stack) from [<8011da6c>] (__warn+0xf8/0x110)
[11274.345889] [<8011da6c>] (__warn) from [<8011db54>] (warn_slowpath_null+0x30/0x38)
[11274.350610] [<8011db54>] (warn_slowpath_null) from [<7f5f8d10>] (ieee80211_rx_napi+0x868/0x9dc [mac80211])
[11274.355400] [<7f5f8d10>] (ieee80211_rx_napi [mac80211]) from [<7f735894>] (ath9k_rx_tasklet+0x160/0x18c [ath9k_htc])
[11274.360099] [<7f735894>] (ath9k_rx_tasklet [ath9k_htc]) from [<80123d34>] (tasklet_action+0x74/0x10c)
[11274.364714] [<80123d34>] (tasklet_action) from [<80101694>] (__do_softirq+0x18c/0x3d8)
[11274.369398] [<80101694>] (__do_softirq) from [<80123808>] (irq_exit+0x108/0x164)
[11274.374202] [<80123808>] (irq_exit) from [<801756d8>] (__handle_domain_irq+0x70/0xc4)
[11274.379171] [<801756d8>] (__handle_domain_irq) from [<80101504>] (bcm2836_arm_irqchip_handle_irq+0xa8/0xac)
[11274.384327] [<80101504>] (bcm2836_arm_irqchip_handle_irq) from [<807a2f7c>] (__irq_svc+0x5c/0x7c)
[11274.389448] Exception stack(0x80c01ef0 to 0x80c01f38)
[11274.392002] 1ee0: 00000000 2d2550dc 3da17000 00000000
[11274.397162] 1f00: 80c00000 80c03dcc 80c03d68 80c882b2 00000001 80b60a30 be5ff9c0 80c01f4c
[11274.402412] 1f20: 80c04174 80c01f40 80108a4c 80108a50 60000013 ffffffff
[11274.405054] [<807a2f7c>] (__irq_svc) from [<80108a50>] (arch_cpu_idle+0x34/0x4c)
[11274.410267] [<80108a50>] (arch_cpu_idle) from [<807a26c4>] (default_idle_call+0x34/0x48)
[11274.415593] [<807a26c4>] (default_idle_call) from [<80161350>] (do_idle+0xd8/0x150)
[11274.420975] [<80161350>] (do_idle) from [<80161664>] (cpu_startup_entry+0x28/0x2c)
[11274.426415] [<80161664>] (cpu_startup_entry) from [<8079c41c>] (rest_init+0xbc/0xc0)
[11274.431960] [<8079c41c>] (rest_init) from [<80b00df8>] (start_kernel+0x3d4/0x3e0)
[11274.437562] ---[ end trace c0f3f54ed3d968d2 ]---
Any suggestion?