OpenWrt Forum Archive

Topic: ath10k and 802.11w

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Just curious if others have had similar results with ath10k randomly crashing when 802.11w (option ieee80211w) is enabled.

From my openwrt trunk builds for the Ubiquiti Unifi AC-Pro, I have observed the following for QCA988X driver firmware-5.bin_10.2.4-1.0 when 11w is enabled in hostapd config:

build 00016 - not tested
build 00029 - broken
build 00033 - WORKS, 4+ weeks uptime no crash
build 00037 - broken

I am using hostapd-full.  And by broken I mean the behavior in flyspray #333 is evident.  When 11w is enabled the radio will randomly crash between 5 min and 5 hours uptime with the same error as documented in fs#333.

(Last edited by knacky on 7 Mar 2018, 18:06)

Just curious if others have had similar results with ath10k randomly crashing when 802.11w (option ieee80211w) is enabled.

Yes you're not alone. FS#333 is there for a reason.

build 00016 - not tested
build 00029 - broken

build 00016 - broken

build 00033 - WORKS, 4+ weeks uptime no crash

I'll give this one a try. I'm still on 00016 but with 802.11w disabled.

Please add your findings to FS#333, to have all informations at a single place. It looks like the relation of 802.11w and the crash was never mentioned in the ticket.

Thanks for the reply.  Don't waste your time with build 00033.  A day after I posted it crashed, apparently just to prove me wrong.

Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.312865] ath10k_pci 0000:00:00.0: failed to delete peer a8:66:7f:07:d9:d1 for vdev 0: -145
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.321692] ath10k_pci 0000:00:00.0: found sta peer a8:66:7f:07:d9:d1 (ptr 86c13c00 id 16) entry on vdev 0 after it was supposedly removed
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.335174] ------------[ cut here ]------------
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.340064] WARNING: CPU: 0 PID: 1177 at backports-2017-11-01/net/mac80211/sta_info.c:1001 sta_set_sinfo+0x930/0x9d8 [mac80211]
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.351941] Modules linked in: ath9k ath9k_common ath9k_hw ath10k_pci ath10k_core ath nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables gpio_button_hotplug
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.409563] CPU: 0 PID: 1177 Comm: hostapd Not tainted 4.9.85 #0
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.415764] Stack : 804b765a 00000034 00000000 00000001 87d06174 80449247 803fe3f8 00000499
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.424455]         804b37a0 000003e9 00000000 00000000 00000000 800a97d4 80403c30 80440000
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.433154]         00000003 000003e9 80401de8 871bdb0c 00000000 800d795c 804b765a 00000073
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.441846]         00000000 80220a00 00000000 00000000 00000000 00000000 00000000 00000000
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.450546]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.459246]         ...
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.461783] Call Trace:
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.464317] [<8006b2c8>] show_stack+0x54/0x88
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.468831] [<8007ff40>] __warn+0xe4/0x118
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.473076] [<80080008>] warn_slowpath_null+0x1c/0x34
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.478372] [<87586fd8>] sta_set_sinfo+0x930/0x9d8 [mac80211]
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.484384] [<87584940>] sta_info_get_bss+0x18/0x68 [mac80211]
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.490455] [<87587160>] sta_info_destroy_addr_bss+0x38/0x60 [mac80211]
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.497391] [<8750e3c0>] cfg80211_check_station_change+0x21cc/0x3848 [cfg80211]
Thu Mar  8 20:59:04 2018 kern.warn kernel: [31695.504971] ---[ end trace 2d7921e441639506 ]---
Thu Mar  8 20:59:07 2018 kern.warn kernel: [31698.592833] ath10k_pci 0000:00:00.0: failed to wait for created wmi peer a8:66:7f:07:d9:d1 on vdev 0: -145
Thu Mar  8 20:59:07 2018 kern.warn kernel: [31698.602902] ath10k_pci 0000:00:00.0: failed to add peer a8:66:7f:07:d9:d1 for vdev 0 when adding a new sta: -145
Thu Mar  8 20:59:07 2018 daemon.notice hostapd: wlan0: STA a8:66:7f:07:d9:d1 IEEE 802.11: Could not add STA to kernel driver

The discussion might have continued from here.