[PATCH ath-next v3 0/2] wifi: ath11k: do not fail down transitions of the station state

Julius Bairaktaris posted 2 patches 1 day, 20 hours ago
drivers/net/wireless/ath/ath11k/mac.c | 31 +++++++++++++++++----------
1 file changed, 20 insertions(+), 11 deletions(-)
[PATCH ath-next v3 0/2] wifi: ath11k: do not fail down transitions of the station state
Posted by Julius Bairaktaris 1 day, 20 hours ago
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: 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 6 of 6 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 v3:
- Rebased onto ath-next 1983b40acfcb.
- Patch 1: return the ath11k_install_key() error for DISABLE_KEY instead
  of the PN replay result that overwrote it (Sashiko review of v2).

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).

v2: https://lore.kernel.org/linux-wireless/20261114225643.962015-1-julius@bairaktaris.de/
v1: https://lore.kernel.org/all/20261101174422.1275413-1-julius@bairaktaris.de/

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 | 31 +++++++++++++++++----------
 1 file changed, 20 insertions(+), 11 deletions(-)


base-commit: 1983b40acfcb3c3464b291c85977290a785bcfdc
-- 
2.53.0