ath11k: fix transmit queue flushing through flush_sta implementation
authorFlorian Maurer <[email protected]>
Fri, 3 Oct 2025 07:30:59 +0000 (09:30 +0200)
committerChristian Marangi <[email protected]>
Tue, 4 Nov 2025 19:12:06 +0000 (20:12 +0100)
commit8faa9dedb40dd0d7f7ebe59fddb2d33ed7a75190
treeb473ed1550625706df26bf5d9d02bd4a497567f6
parent582cdd48c37395adba1193811ddf27f74470d57e
ath11k: fix transmit queue flushing through flush_sta implementation

warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20293
Signed-off-by: Christian Marangi <[email protected]>
package/kernel/mac80211/patches/ath11k/453-ath11k-add-ath11k_mac_op_flush_sta-to-properly-flush.patch [new file with mode: 0644]
package/kernel/mac80211/patches/ath11k/941-ath11k-fix_sleeping-in-atomic_in_ath11k_mac_op_set_bitrate_mask.patch
package/kernel/mac80211/patches/ath11k/945-ath11k-fix_group_data_packet_drops_during_rekey.patch