wifi: rtw89: Drop malformed AMPDU frames with abnormal PN

Fix connection issue caused by AMPDU frames with abnormal PN patterns
(out-of-order packets with correct MPDU sequence numbers but paired
with abnormal PN values, which is next PN of previous in-order packet).
This is causing packet drops, low throughput and disconnections. It is
observed in fields with some specific AP firmwares. Do this workaround for
better interoperability since some APs could never receive a proper FW
update.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260310080146.31113-12-pkshih@realtek.com
This commit is contained in:
Po-Hao Huang 2026-03-10 16:01:44 +08:00 • committed by Ping-Ke Shih
commit bda294ed0e
6 changed files with 148 additions and 7 deletions