ath10k: wcn3990: hitting kernel warnings while running hostapd

From: Amit Pundir
Date: Thu Feb 09 2023 - 13:23:05 EST


Hi,

I'm using WiFi hotspot (hostapd) on Dragonboard 845c
(sdm845|ath10k|wcn3990) running AOSP, and I run into following
non-fatal warnings when a station disassociates from the AP. I wanted
to raise the issue in case anyone had ideas what might be going wrong.
Any known issues? I can reproduce similar warnings all the way to
v5.15.y (or may be older LTS versions as well but didn't try yet).

--------------------->8----------8<------------------
[ 9759.346966][ T1989] ath10k_snoc 18800000.wifi: failed to install
key for vdev 0 peer 8a:55:b5:61:9c:a7: -110
[ 9759.356962][ T1989] wlan0: failed to remove key (0,
8a:55:b5:61:9c:a7) from hardware (-110)
[ 9759.394757][ T1989] ath10k_snoc 18800000.wifi: cipher 0 is not supported
[ 9759.401548][ T1989] ath10k_snoc 18800000.wifi: failed to remove
peer wep key 0: -95
[ 9759.409545][ T1989] ath10k_snoc 18800000.wifi: failed to clear all
peer wep keys for vdev 0: -95
[ 9759.418574][ T1989] ath10k_snoc 18800000.wifi: failed to
disassociate station: 8a:55:b5:61:9c:a7 vdev 0: -95
[ 9759.428742][ T1989] ------------[ cut here ]------------
[ 9759.434103][ T1989] WARNING: CPU: 3 PID: 1989 at
net/mac80211/sta_info.c:1307 __sta_info_destroy_part2+0x108/0x150
........
[ 9759.721639][ T1989] CPU: 3 PID: 1989 Comm: hostapd Tainted: G
E 6.2.0-rc7-mainline-00015-gdc06692108da #1
[ 9759.732680][ T1989] Hardware name: Thundercomm Dragonboard 845c (DT)
[ 9759.739088][ T1989] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT
-SSBS BTYPE=--)
[ 9759.746812][ T1989] pc : __sta_info_destroy_part2+0x108/0x150
[ 9759.752620][ T1989] lr : __sta_info_destroy_part2+0x6c/0x150
..............
[ 9759.841441][ T1989] Call trace:
[ 9759.844616][ T1989] __sta_info_destroy_part2+0x108/0x150
[ 9759.850069][ T1989] __sta_info_destroy+0x2c/0x40
[ 9759.854826][ T1989] sta_info_destroy_addr_bss+0x34/0x58
[ 9759.860189][ T1989] ieee80211_del_station+0x1c/0x40
[ 9759.865208][ T1989] nl80211_del_station+0xdc/0x250
[ 9759.870136][ T1989] genl_family_rcv_msg_doit.isra.0+0xbc/0x128
[ 9759.876119][ T1989] genl_rcv_msg+0x1f0/0x280
[ 9759.880529][ T1989] netlink_rcv_skb+0x58/0x138
[ 9759.885112][ T1989] genl_rcv+0x38/0x50
[ 9759.888990][ T1989] netlink_unicast+0x1cc/0x298
[ 9759.893659][ T1989] netlink_sendmsg+0x1d8/0x448
[ 9759.898328][ T1989] sock_sendmsg+0x4c/0x58
[ 9759.902562][ T1989] ____sys_sendmsg+0x314/0x3a8
[ 9759.907226][ T1989] ___sys_sendmsg+0x80/0xc8
[ 9759.911634][ T1989] __sys_sendmsg+0x68/0xc8
[ 9759.915946][ T1989] __arm64_sys_sendmsg+0x24/0x30
[ 9759.920787][ T1989] invoke_syscall+0x44/0x108
[ 9759.925286][ T1989] el0_svc_common.constprop.0+0x44/0xf0
[ 9759.930746][ T1989] do_el0_svc+0x38/0xb0
[ 9759.934799][ T1989] el0_svc+0x2c/0xb8
[ 9759.938594][ T1989] el0t_64_sync_handler+0xb8/0xc0
[ 9759.943521][ T1989] el0t_64_sync+0x1a0/0x1a4
[ 9759.947929][ T1989] ---[ end trace 0000000000000000 ]---
[ 9759.975839][ T1989] ------------[ cut here ]------------
[ 9759.981188][ T1989] WARNING: CPU: 4 PID: 1989 at
net/mac80211/sta_info.c:417 sta_info_free+0xa0/0x110
....................
[ 9760.266646][ T1989] CPU: 4 PID: 1989 Comm: hostapd Tainted: G
W E 6.2.0-rc7-mainline-00015-gdc06692108da #1
[ 9760.277675][ T1989] Hardware name: Thundercomm Dragonboard 845c (DT)
[ 9760.284076][ T1989] pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT
-SSBS BTYPE=--)
[ 9760.291782][ T1989] pc : sta_info_free+0xa0/0x110
[ 9760.296524][ T1989] lr : __sta_info_destroy_part2+0xf4/0x150
.................................
[ 9760.385123][ T1989] Call trace:
[ 9760.388286][ T1989] sta_info_free+0xa0/0x110
[ 9760.392673][ T1989] __sta_info_destroy_part2+0xf4/0x150
[ 9760.398026][ T1989] __sta_info_destroy+0x2c/0x40
[ 9760.402763][ T1989] sta_info_destroy_addr_bss+0x34/0x58
[ 9760.408115][ T1989] ieee80211_del_station+0x1c/0x40
[ 9760.413115][ T1989] nl80211_del_station+0xdc/0x250
[ 9760.418027][ T1989] genl_family_rcv_msg_doit.isra.0+0xbc/0x128
[ 9760.423987][ T1989] genl_rcv_msg+0x1f0/0x280
[ 9760.428374][ T1989] netlink_rcv_skb+0x58/0x138
[ 9760.432943][ T1989] genl_rcv+0x38/0x50
[ 9760.436805][ T1989] netlink_unicast+0x1cc/0x298
[ 9760.441461][ T1989] netlink_sendmsg+0x1d8/0x448
[ 9760.446117][ T1989] sock_sendmsg+0x4c/0x58
[ 9760.450333][ T1989] ____sys_sendmsg+0x314/0x3a8
[ 9760.454984][ T1989] ___sys_sendmsg+0x80/0xc8
[ 9760.459371][ T1989] __sys_sendmsg+0x68/0xc8
[ 9760.463672][ T1989] __arm64_sys_sendmsg+0x24/0x30
[ 9760.468498][ T1989] invoke_syscall+0x44/0x108
[ 9760.472982][ T1989] el0_svc_common.constprop.0+0x44/0xf0
[ 9760.478422][ T1989] do_el0_svc+0x38/0xb0
[ 9760.482467][ T1989] el0_svc+0x2c/0xb8
[ 9760.486245][ T1989] el0t_64_sync_handler+0xb8/0xc0
[ 9760.491164][ T1989] el0t_64_sync+0x1a0/0x1a4
[ 9760.495551][ T1989] ---[ end trace 0000000000000000 ]---
[ 9760.500964][ T1989] ath10k_snoc 18800000.wifi: failed to clear all
peer wep keys for vdev 0: -2
[ 9760.509735][ T1989] ath10k_snoc 18800000.wifi: failed to
disassociate station: 8a:55:b5:61:9c:a7 vdev 0: -2
[ 9760.519547][ T1989] ------------[ cut here ]------------
[ 9760.519548][ T1989] sta_info_move_state() returned -2
[ 9760.519562][ T1989] WARNING: CPU: 4 PID: 1989 at
net/mac80211/sta_info.c:420 sta_info_free+0x108/0x110
..............................
[ 9760.889840][ T1989] CPU: 4 PID: 1989 Comm: hostapd Tainted: G
W E 6.2.0-rc7-mainline-00015-gdc06692108da #1
[ 9760.900872][ T1989] Hardware name: Thundercomm Dragonboard 845c (DT)
[ 9760.907270][ T1989] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT
-SSBS BTYPE=--)
[ 9760.914975][ T1989] pc : sta_info_free+0x108/0x110
[ 9760.919801][ T1989] lr : sta_info_free+0x108/0x110
...............................................
[ 9761.007538][ T1989] Call trace:
[ 9761.010703][ T1989] sta_info_free+0x108/0x110
[ 9761.015185][ T1989] __sta_info_destroy_part2+0xf4/0x150
[ 9761.020537][ T1989] __sta_info_destroy+0x2c/0x40
[ 9761.025277][ T1989] sta_info_destroy_addr_bss+0x34/0x58
[ 9761.030625][ T1989] ieee80211_del_station+0x1c/0x40
[ 9761.035632][ T1989] nl80211_del_station+0xdc/0x250
[ 9761.040544][ T1989] genl_family_rcv_msg_doit.isra.0+0xbc/0x128
[ 9761.046507][ T1989] genl_rcv_msg+0x1f0/0x280
[ 9761.050901][ T1989] netlink_rcv_skb+0x58/0x138
[ 9761.055469][ T1989] genl_rcv+0x38/0x50
[ 9761.059340][ T1989] netlink_unicast+0x1cc/0x298
[ 9761.063995][ T1989] netlink_sendmsg+0x1d8/0x448
[ 9761.068650][ T1989] sock_sendmsg+0x4c/0x58
[ 9761.072866][ T1989] ____sys_sendmsg+0x314/0x3a8
[ 9761.077520][ T1989] ___sys_sendmsg+0x80/0xc8
[ 9761.081906][ T1989] __sys_sendmsg+0x68/0xc8
[ 9761.086206][ T1989] __arm64_sys_sendmsg+0x24/0x30
[ 9761.091028][ T1989] invoke_syscall+0x44/0x108
[ 9761.095512][ T1989] el0_svc_common.constprop.0+0x44/0xf0
[ 9761.100949][ T1989] do_el0_svc+0x38/0xb0
[ 9761.104993][ T1989] el0_svc+0x2c/0xb8
[ 9761.108768][ T1989] el0t_64_sync_handler+0xb8/0xc0
[ 9761.113679][ T1989] el0t_64_sync+0x1a0/0x1a4
[ 9761.118066][ T1989] ---[ end trace 0000000000000000 ]---
--------------------->8----------8<------------------

Full log here: https://www.irccloud.com/pastebin/P4cJCw0H/

Regards,
Amit Pundir