[PATCH ath-next v2 0/2] wifi: ath11k: do not fail down transitions of the station state
From: Julius Bairaktaris
Date: Sat Nov 14 2026 - 17:57:01 EST
mac80211 warns when a driver fails a down transition of the station
state, and ath11k does so while the firmware is down. Patch 2 fixes that.
Patch 1 is new: with the firmware down, a key whose removal failed stayed
in peer->keys[] although mac80211 had freed it.
I used Claude (Anthropic) to help write these patches.
Tested on an IPQ8074 AP (hw2.0 AHB, WLAN.HK.2.12-01460): the firmware was
crashed through debugfs and the station deleted at once. In 3 of 3 runs
with this series station del returned 0 with no mac80211 warning and no
key removal error, and the station re-associated. With the v1 patch alone,
one run logged "failed to remove peer key 0: -108" and "failed to clear all
peer keys for vdev 0: -108".
Changes in v2:
- New patch 1.
- Patch 2: continue the host cleanup after a failed early vdev stop and
a failed RTS/CTS update instead of returning from them (Sashiko review
of v1).
v1: https://lore.kernel.org/all/20261101174422.1275413-1-julius@xxxxxxxxxxxxxx/
Julius Bairaktaris (2):
wifi: ath11k: forget a key the firmware failed to remove
wifi: ath11k: do not fail down transitions of the station state
drivers/net/wireless/ath/ath11k/mac.c | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
base-commit: 1be6c8d3027d4a421dc46b93a89a196c61945614
--
2.53.0