Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH ath-next] wifi: ath11k: invalidate the REO queue SSN when RX aggregation stops
@ 2026-11-25  9:03 Florian Maurer
  2026-11-26 21:17 ` adorfer
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Maurer @ 2026-11-25  9:03 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: ath11k, linux-wireless, Florian Maurer

Since commit fe201947f8bd ("ath11k: update bawindow size in delba
process"), stopping RX aggregation no longer deletes the REO queue of
the TID, so that frames sent without a new ADDBA are not dropped as
invalid. The queue is shrunk to a window of 1 but keeps its window head
and its SSN-valid bit. If the peer then restarts its sequence numbers
without a new ADDBA, REO drops its frames as old until they pass that
head again, for up to 2047 frames.

This happens in an 802.11s mesh when a peer restarts or rejoins without
HT: mac80211 stops the RX sessions ("wifi: mac80211: mesh: tear down BA
sessions when the peer link goes down"), and the peer starts again from
sequence number 0. In AP/STA mode a restarted peer reassociates and gets
a new queue.

Clear the SSN-valid bit when stopping, so that the queue is in the same
state as a newly set up one (ath11k_hal_reo_qdesc_setup()).
ath11k_dp_peer_rx_pn_replay_config() already clears it on active queues
when a pairwise key is installed.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1

Fixes: fe201947f8bd ("ath11k: update bawindow size in delba process")
Signed-off-by: Florian Maurer <fmaurer@disroot.org>
---
Tested on a Xiaomi AX3600 (OpenWrt, 6.18 backports) as the node that
keeps the station in an open 802.11s mesh, with the mac80211 patch [1]:
 - peer rejoins without HT: replies in the first 50 s 0/50 without this
   patch, 48-49/50 with it (4/4 runs each); HT20 rejoins unchanged
 - an ath10k neighbour reboots: its frames were dropped for 4.5 min to
   over 20 min without both patches (3/3), and got through right after
   its boot with them (2/2)
No firmware crash or REO command failure. Not tested: encrypted mesh
(the key install already clears the bit), AP/STA, other ath11k chips.
ath12k_dp_rx_ampdu_stop() has the same pattern; I have no ath12k
hardware to test it.

[1] https://lore.kernel.org/r/20261120142515.463101-1-fmaurer@disroot.org/

 drivers/net/wireless/ath/ath11k/dp_rx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c
index 6d95f7b343a5..f3108aa992bc 100644
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -955,6 +955,9 @@ static int ath11k_peer_rx_tid_reo_update(struct ath11k *ar,
 	if (update_ssn) {
 		cmd.upd0 |= HAL_REO_CMD_UPD0_SSN;
 		cmd.upd2 = FIELD_PREP(HAL_REO_CMD_UPD2_SSN, ssn);
+	} else {
+		/* drop the old window head, as for a newly set up queue */
+		cmd.upd0 |= HAL_REO_CMD_UPD0_SVLD;
 	}
 
 	ret = ath11k_dp_tx_send_reo_cmd(ar->ab, rx_tid,

base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH ath-next] wifi: ath11k: invalidate the REO queue SSN when RX aggregation stops
  2026-11-25  9:03 [PATCH ath-next] wifi: ath11k: invalidate the REO queue SSN when RX aggregation stops Florian Maurer
@ 2026-11-26 21:17 ` adorfer
  0 siblings, 0 replies; 2+ messages in thread
From: adorfer @ 2026-11-26 21:17 UTC (permalink / raw)
  To: Florian Maurer; +Cc: Jeff Johnson, ath11k, linux-wireless

Tested-by: Andreas Dorfer <ad@ffdus.de>

Tested on Mercusys MR80Xv2 (IPQ5018 + QCN6122, WLAN.HK.2.7.0.1-01744),
backports 6.12.96, with the mac80211 BA teardown patch, open 802.11s
mesh with ath9k/mt76 nbs. 5 reboots: 959 of 960 mesh links
passed unicast right afterwards; then 624 of 624 over 2 h without
reboots. No firmware crash, no REO errors.

One 5 GHz link to a mt76 peer shows short periodic gaps, with/WO
patch; your A-MSDU patch planned as next test.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-26 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  9:03 [PATCH ath-next] wifi: ath11k: invalidate the REO queue SSN when RX aggregation stops Florian Maurer
2026-11-26 21:17 ` adorfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox