freezkyd
Posts: 8
Joined: Wed Aug 19, 2015 5:18 am

TL-WN722N and hostapd crashes

Mon Jun 24, 2019 12:46 pm

I have a

Code: Select all

Raspberry Pi Model B Plus Rev 1.2
with raspbian running the 4.14.98+ Kernel.
I have connected a TP-LINK TL-WN722N USB Wifi dongle:

Code: Select all

Bus 001 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
I am using dnsmasq and hostap to set it up as an Access Point. It works absolutely great, but after some time it seems that it crashes with a message:

Code: Select all

[265945.214597] ------------[ cut here ]------------
[265945.215805] WARNING: CPU: 0 PID: 14319 at net/mac80211/main.c:1230 ieee80211_free_ack_frame+0x50/0x64 [mac80211]
[265945.215964] Have pending ack frames!
[265945.215972] Modules linked in: xt_multiport ctr ccm xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack arc4 ath9k_htc ath9k_common ath9k_hw ath mac80211 ip6table_filter ip6_tables iptable_filter cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[265945.216133] CPU: 0 PID: 14319 Comm: kworker/0:4 Tainted: G        WC      4.14.98+ #1200
[265945.216139] Hardware name: BCM2835
[265945.216180] Workqueue: usb_hub_wq hub_event
[265945.216244] [<c0016420>] (unwind_backtrace) from [<c0013d40>] (show_stack+0x20/0x24)
[265945.216282] [<c0013d40>] (show_stack) from [<c0638de4>] (dump_stack+0x20/0x28)
[265945.216313] [<c0638de4>] (dump_stack) from [<c0021ecc>] (__warn+0xe4/0x10c)
[265945.216333] [<c0021ecc>] (__warn) from [<c0021f3c>] (warn_slowpath_fmt+0x48/0x50)
[265945.217442] [<c0021f3c>] (warn_slowpath_fmt) from [<bf1c7528>] (ieee80211_free_ack_frame+0x50/0x64 [mac80211])
[265945.218449] [<bf1c7528>] (ieee80211_free_ack_frame [mac80211]) from [<c063b978>] (idr_for_each+0x3c/0xac)
[265945.219438] [<c063b978>] (idr_for_each) from [<bf1c74b0>] (ieee80211_free_hw+0x44/0x6c [mac80211])
[265945.220503] [<bf1c74b0>] (ieee80211_free_hw [mac80211]) from [<bf33384c>] (ath9k_htc_disconnect_device+0x9c/0xa0 [ath9k_htc])
[265945.220722] [<bf33384c>] (ath9k_htc_disconnect_device [ath9k_htc]) from [<bf32a978>] (ath9k_htc_hw_deinit+0x20/0x24 [ath9k_htc])
[265945.220915] [<bf32a978>] (ath9k_htc_hw_deinit [ath9k_htc]) from [<bf32b7ac>] (ath9k_hif_usb_disconnect+0xfc/0x12c [ath9k_htc])
[265945.221002] [<bf32b7ac>] (ath9k_hif_usb_disconnect [ath9k_htc]) from [<c046f920>] (usb_unbind_interface+0x80/0x288)
[265945.221034] [<c046f920>] (usb_unbind_interface) from [<c0406db8>] (device_release_driver_internal+0x14c/0x1ec)
[265945.221056] [<c0406db8>] (device_release_driver_internal) from [<c0406e78>] (device_release_driver+0x20/0x24)
[265945.221075] [<c0406e78>] (device_release_driver) from [<c0405c48>] (bus_remove_device+0xd8/0x108)
[265945.221103] [<c0405c48>] (bus_remove_device) from [<c04027a8>] (device_del+0x118/0x310)
[265945.221125] [<c04027a8>] (device_del) from [<c046d0a8>] (usb_disable_device+0xb0/0x1f4)
[265945.221160] [<c046d0a8>] (usb_disable_device) from [<c0463c00>] (usb_disconnect+0x7c/0x1fc)
[265945.221183] [<c0463c00>] (usb_disconnect) from [<c0465608>] (hub_event+0x594/0x11c0)
[265945.221211] [<c0465608>] (hub_event) from [<c00393b4>] (process_one_work+0x11c/0x398)
[265945.221231] [<c00393b4>] (process_one_work) from [<c003966c>] (worker_thread+0x3c/0x544)
[265945.221259] [<c003966c>] (worker_thread) from [<c003f568>] (kthread+0x120/0x15c)
[265945.221292] [<c003f568>] (kthread) from [<c000fe2c>] (ret_from_fork+0x14/0x28)
[265945.221304] ---[ end trace ca1a60a22b3301e4 ]---
I have noted down the following:
  • A simple unplug and re-plug of the dongle seems to fix this
    A restart from the console doesn't change anything
    Replacing the TP-LINK dongle doesn't change anything either
    The issue happens 1-2 times every day
Has anyone seen something similar?

Return to “Networking and servers”