]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: correct drop logic for malformed AMPDU frames
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 15 May 2026 01:44:29 +0000 (09:44 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 25 May 2026 05:58:27 +0000 (13:58 +0800)
commit63ccdfac8677387dfdbd9d4336089e9823280704
tree618ee9576a685eaeacf23c6e1f89e71c9b98eb14
parentdcf5c7262bffa2cbafc6523be63c287d15d8ae22
wifi: rtw89: correct drop logic for malformed AMPDU frames

The previous commit aims to fix issue caused by malformed AMPDU frames.
But the drop logic fails to deal with the first AMPDU packet paired with
certain range of sequence number, and leads to unexpected packet drop.
It is more likely to encounter this failure when there are busy traffic
during rekey process and could lead to disconnection from the AP.
Fix this by adding a initial state judgement and only reset status
during pairwise rekey.

Fixes: bda294ed0ed0 ("wifi: rtw89: Drop malformed AMPDU frames with abnormal PN")
Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260515014433.16168-10-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/mac80211.c