[BBB] Debian is freezed when AR9271 based WiFi adapter connected

Hi,

I am trying to get a NetGear WNA1100 (based on AR9271) USB adapter attached to BBB connected to WiFi access point. I can get it connected successfully via connmanctl.
However, BBB freezes shortly after the connection is made. When I unplug the WNA1100 adapter, BBB things get back to normal. The same happens when I try with a TL-WN722N (based on AR9271) adapter.
Note that this doesn’t happen when I use a AWUS036NH (based on RT3070) adapter. Looks like the problem is with ath9k driver being stuck in a loop due to some reason.

Has anyone experienced the same problem?

Here are the configurations I am using on BBB:

Debian 8.6 2016-12-09 4GB SD IoT image on BBB.

uname -a
Linux beaglebone 4.4.36-ti-r72 #1 SMP Wed Dec 7 22:29:53 UTC 2016 armv7l GNU/Linux

lsusb
Bus 001 Device 007: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]

lsmod (I am including only the relevant details to make this post short)

ath9k_htc 62687 0
ath9k_common 29906 1 ath9k_htc
ath9k_hw 452958 2 ath9k_common,ath9k_htc
ath 23009 3 ath9k_common,ath9k_htc,ath9k_hw
mac80211 626207 1 ath9k_htc
cfg80211 531670 4 ath,ath9k_common,mac80211,ath9k_htc
rfkill 21386 3 cfg80211

dmesg (I am including only the relevant details to make this post short)

[ 195.426274] usb 1-1.2: new high-speed USB device number 6 using musb-hdrc
[ 195.530690] usb 1-1.2: New USB device found, idVendor=0846, idProduct=9030
[ 195.530715] usb 1-1.2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 195.530727] usb 1-1.2: Product: WNA1100
[ 195.530738] usb 1-1.2: Manufacturer: NETGEAR WNA
[ 195.530748] usb 1-1.2: SerialNumber: 12345
[ 195.877792] usb 1-1.2: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[ 195.886470] usbcore: registered new interface driver ath9k_htc
[ 196.167948] usb 1-1.2: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[ 196.423796] ath9k_htc 1-1.2:1.0: ath9k_htc: HTC initialized with 33 credits
[ 196.723050] ath9k_htc 1-1.2:1.0: ath9k_htc: FW Version: 1.4
[ 196.723085] ath9k_htc 1-1.2:1.0: FW RMW support: On
[ 196.723100] ath: EEPROM regdomain: 0x60
[ 196.723109] ath: EEPROM indicates we should expect a direct regpair map
[ 196.723130] ath: Country alpha2 being used: 00
[ 196.723138] ath: Regpair used: 0x60
[ 196.879267] ieee80211 phy0: Atheros AR9271 Rev:1
[ 197.062446] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 198.188169] wlan0: authenticate with 30:85:a9:6a:1a:5c
[ 198.342781] wlan0: send auth to 30:85:a9:6a:1a:5c (try 1/3)
[ 198.351258] wlan0: authenticated
[ 198.358372] wlan0: associate with 30:85:a9:6a:1a:5c (try 1/3)
[ 198.363329] wlan0: RX AssocResp from 30:85:a9:6a:1a:5c (capab=0x411 status=0 aid=2)
[ 198.376174] wlan0: associated
[ 198.376281] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 248.631017] INFO: rcu_sched self-detected stall on CPU
[ 248.637364] 0-…: (5250 ticks this GP) idle=915/140000000000002/0 softirq=0/0 fqs=0
[ 248.645728] (t=5250 jiffies g=17320 c=17319 q=1583)
[ 248.651507] rcu_sched kthread starved for 5250 jiffies! g17320 c17319 f0x0 s3 ->state=0x1
[ 248.660063] Task dump for CPU 0:
[ 248.660324] kworker/0:0 R running 0 4 2 0x00000002
[ 248.661155] Workqueue: events dbs_timer
[ 248.661996] [] (unwind_backtrace) from [] (show_stack+0x20/0x24)
[ 248.662556] [] (show_stack) from [] (sched_show_task+0xb8/0x110)
[ 248.663099] [] (sched_show_task) from [] (dump_cpu_task+0x48/0x4c)
[ 248.663771] [] (dump_cpu_task) from [] (rcu_dump_cpu_stacks+0x9c/0xd8)
[ 248.664364] [] (rcu_dump_cpu_stacks) from [] (rcu_check_callbacks+0x5c8/0x910)
[ 248.664960] [] (rcu_check_callbacks) from [] (update_process_times+0x4c/0x74)
[ 248.665503] [] (update_process_times) from [] (tick_sched_handle+0x64/0x70)
[ 248.666001] [] (tick_sched_handle) from [] (tick_sched_timer+0x58/0x9c)
[ 248.666531] [] (tick_sched_timer) from [] (__hrtimer_run_queues+0x1b4/0x3a8)
[ 248.667100] [] (__hrtimer_run_queues) from [] (hrtimer_interrupt+0xd4/0x230)
[ 248.667689] [] (hrtimer_interrupt) from [] (omap2_gp_timer_interrupt+0x38/0x40)
[ 248.668336] [] (omap2_gp_timer_interrupt) from [] (handle_irq_event_percpu+0xa0/0x2a0)
[ 248.668926] [] (handle_irq_event_percpu) from [] (handle_irq_event+0x54/0x78)
[ 248.669463] [] (handle_irq_event) from [] (handle_level_irq+0xb0/0x148)
[ 248.669988] [] (handle_level_irq) from [] (generic_handle_irq+0x34/0x44)
[ 248.670553] [] (generic_handle_irq) from [] (__handle_domain_irq+0x6c/0xc4)
[ 248.671104] [] (__handle_domain_irq) from [] (omap_intc_handle_irq+0x44/0xa0)
[ 248.671684] [] (omap_intc_handle_irq) from [] (__irq_svc+0x54/0x70)
[ 248.671990] Exception stack(0xdc14b698 to 0xdc14b6e0)
[ 248.672362] b680: db399540 dc8ba624
[ 248.672883] b6a0: db5cb000 00000000 db399540 c0f95a88 c1051740 db5cb000 000000bc d41431c0
[ 248.673389] b6c0: db5cb05c dc14b72c dc14b730 dc14b6e8 c0952504 c09528f8 60000113 ffffffff
[ 248.673960] [] (__irq_svc) from [] (ip_local_deliver+0x50/0x108)
[ 248.674481] [] (ip_local_deliver) from [] (ip_rcv_finish+0x17c/0x3e8)
[ 248.674967] [] (ip_rcv_finish) from [] (ip_rcv+0x3dc/0x4bc)
[ 248.675582] [] (ip_rcv) from [] (__netif_receive_skb_core+0x328/0xb64)
[ 248.676153] [] (__netif_receive_skb_core) from [] (__netif_receive_skb+0x38/0x94)
[ 248.676672] [] (__netif_receive_skb) from [] (netif_receive_skb_internal+0x54/0xd4)
[ 248.677176] [] (netif_receive_skb_internal) from [] (netif_receive_skb+0x34/0xa4)
[ 248.686167] [] (netif_receive_skb) from [] (ieee80211_deliver_skb+0x154/0x1a8 [mac80211])
[ 248.699533] [] (ieee80211_deliver_skb [mac80211]) from [] (ieee80211_rx_handlers+0xf10/0x2718 [mac80211])
[ 248.711685] [] (ieee80211_rx_handlers [mac80211]) from [] (ieee80211_prepare_and_rx_handle+0x1c0/0xa68 [mac80211])
[ 248.723740] [] (ieee80211_prepare_and_rx_handle [mac80211]) from [] (ieee80211_rx_napi+0x7d0/0x858 [mac80211])
[ 248.731044] [] (ieee80211_rx_napi [mac80211]) from [] (ath9k_rx_tasklet+0x3ac/0x418 [ath9k_htc])
[ 248.732586] [] (ath9k_rx_tasklet [ath9k_htc]) from [] (__tasklet_action+0x70/0x138)
[ 248.733153] [] (__tasklet_action) from [] (tasklet_action+0x4c/0x50)
[ 248.733688] [] (tasklet_action) from [] (__do_softirq+0xec/0x37c)
[ 248.734214] [] (__do_softirq) from [] (irq_exit+0xc4/0x12c)
[ 248.734805] [] (irq_exit) from [] (__handle_domain_irq+0x70/0xc4)
[ 248.735371] [] (__handle_domain_irq) from [] (omap_intc_handle_irq+0x44/0xa0)
[ 248.735938] [] (omap_intc_handle_irq) from [] (__irq_svc+0x54/0x70)
[ 248.736236] Exception stack(0xdc14bbd0 to 0xdc14bc18)
[ 248.736642] bbc0: 00000000 0000007f fff80100 00000100
[ 248.737149] bbe0: dc039b80 0007ff7f 00000064 c1151b14 dc039c00 00000003 00000000 dc14bc44
[ 248.737598] bc00: dc14bc20 dc14bc20 c08cf450 c08cf490 60000113 ffffffff
[ 248.738261] [] (__irq_svc) from [] (omap3_noncore_dpll_program+0x8c/0x308)
[ 248.738896] [] (omap3_noncore_dpll_program) from [] (omap3_noncore_dpll_set_rate+0x8c/0x268)
[ 248.739463] [] (omap3_noncore_dpll_set_rate) from [] (clk_change_rate+0xe8/0x3dc)
[ 248.739975] [] (clk_change_rate) from [] (clk_core_set_rate_nolock+0x78/0xf8)
[ 248.740484] [] (clk_core_set_rate_nolock) from [] (clk_set_rate+0x30/0x48)
[ 248.741005] [] (clk_set_rate) from [] (dev_pm_opp_domain_set_rate+0x108/0x2ec)
[ 248.741653] [] (dev_pm_opp_domain_set_rate) from [] (dev_pm_opp_set_rate+0x38/0x5c)
[ 248.742260] [] (dev_pm_opp_set_rate) from [] (set_target+0x3c/0x40)
[ 248.742902] [] (set_target) from [] (__cpufreq_driver_target+0x2a4/0x41c)
[ 248.743450] [] (__cpufreq_driver_target) from [] (od_check_cpu+0xcc/0xd0)
[ 248.743965] [] (od_check_cpu) from [] (dbs_check_cpu+0x1cc/0x228)
[ 248.744476] [] (dbs_check_cpu) from [] (od_dbs_timer+0x68/0xf8)
[ 248.744972] [] (od_dbs_timer) from [] (dbs_timer+0x1ac/0x1d0)
[ 248.745487] [] (dbs_timer) from [] (process_one_work+0x158/0x460)
[ 248.745983] [] (process_one_work) from [] (worker_thread+0x54/0x4f8)
[ 248.746518] [] (worker_thread) from [] (kthread+0xfc/0x114)
[ 248.747108] [] (kthread) from [] (ret_from_fork+0x14/0x34)
[ 252.982782] usb 1-1.2: USB disconnect, device number 6
[ 253.258660] wlan0: deauthenticating from 30:85:a9:6a:1a:5c by local choice (Reason: 3=DEAUTH_LEAVING)
[ 253.274301] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x541718dc AR_DIAG_SW=0x541718dc DMADBG_7=0x541718dc
[ 253.301898] ath: phy0: Failed to wakeup in 500us
[ 253.408402] ath: phy0: RX failed to go idle in 10 ms RXSM=0x30d358db
[ 253.425058] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x3c1718dc AR_DIAG_SW=0x3c1718dc DMADBG_7=0x3c1718dc
[ 253.448062] ath: phy0: Failed to wakeup in 500us
[ 253.555628] ath: phy0: RX failed to go idle in 10 ms RXSM=0x30d358db
[ 253.572306] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x341a18dc AR_DIAG_SW=0x341a18dc DMADBG_7=0x341a18dc
[ 253.593974] ath: phy0: Failed to wakeup in 500us
[ 253.611384] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x3c1a18dc AR_DIAG_SW=0x3c1a18dc DMADBG_7=0x3c1a18dc
[ 253.661201] usb 1-1.2: ath9k_htc: USB layer deinitialized
[ 253.753726] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Hi,

I am getting the same issue with the USB to CAN interface in my Beaglebone green Wireless. Did you figure out what is causing this issue?