UPSTREAM: 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
(cherry picked from commit 63ccdfac8677387dfdbd9d4336089e9823280704)
BUG=b:540261612
TEST=verify suite:wifi_matfunc and suite:wifi_perf and suite:btc on DeDeDe
Change-Id: Ifce81fa926866ba72f19254c271e68df2c9465fb
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/8182086
Reviewed-by: Jintao Lin <jintaolin@chromium.org>
Reviewed-by: Sean Paul <sean@poorly.run>
Reviewed-by: Ruth Mekonnen <rmekonnen@google.com>
Tested-by: TimLee Tim <timlee@realtek.com>
Commit-Queue: Ruth Mekonnen <rmekonnen@google.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@chromium.org>
2 files changed