[PATCH 0/2] wifi: iwlwifi: release frames before one beyond the reorder window
From: David Härdeman
Date: Mon Nov 16 2026 - 10:57:13 EST
An AP that gives up on an MPDU of a BA session without sending a BAR
and keeps transmitting will eventually send a frame with SN ==
head_sn + buf_size. Both iwlmvm and iwlmld store that frame in the slot
of head_sn and then release it ahead of the frames before it, which
all fail the PN check. A single lost MPDU becomes a burst of up to 63
dropped frames, i.e. a TCP loss burst.
I ran into this with an AX210 (iwlmvm) on an rtw88 SDIO AP (RTL8822CS)
that drops frames without a BAR while the client is off-channel for
background scans; the AP side is a separate problem. A kprobe at the
PN check showed every burst starting with the frame at hole + 64.
Patch 1 restores the window check that iwlmvm had before the reorder
buffer was simplified. Tested on 7.2.15 (same code): PN-replay drops
per client scan went from about 280 to about 12, and in normal use
(8 two-minute bidirectional TCP runs each) from 290 to 3 per run.
Patch 2 does the same for iwlmld, which has the same code. I have no
iwlmld hardware; it adds a KUnit case that fails without the fix and
passes with it.
The patches were generated with the help of an LLM; I have reviewed
them (to the best of my ability), and tested patch 1 on actual hardware
as described above (patch 2 only with the KUnit case).
David Härdeman (2):
wifi: iwlwifi: mvm: release frames before one beyond the window
wifi: iwlwifi: mld: release frames before one beyond the window
drivers/net/wireless/intel/iwlwifi/mld/agg.c | 14 ++++++++++
.../wireless/intel/iwlwifi/mld/tests/agg.c | 28 +++++++++++++++++++
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 13 +++++++++
3 files changed, 55 insertions(+)
base-commit: 3627924ed81fd7783394fb2555ea179c6606a231
--
2.47.3