wifi: iwlwifi: mld: avoid outdated reorder buffer head_sn
authorAvraham Stern <avraham.stern@intel.com>
Wed, 23 Jul 2025 06:45:06 +0000 (09:45 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 23 Jul 2025 11:10:24 +0000 (14:10 +0300)
commit666357bf3e57c6a68be128825775aee14f9a24f7
tree5a6ba1c164e36b8b1ef67f4ce61ab3eed1b12fc9
parent422850b29e05e67c9145895bfe559940caa0caa8
wifi: iwlwifi: mld: avoid outdated reorder buffer head_sn

If no frames are received on a queue for a while, the reorder buffer
head_sn may be an old one. When the next frame that is received on
that queue and buffered is a subframe of an AMSDU but not the last
subframe, it will not update the buffer's head_sn. When the frame
release notification arrives, it will not release the buffered frame
because it will look like the notification's NSSN is lower than the
buffer's head_sn (because of a wraparound).
Fix it by updating the head_sn when the first frame is buffered.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250723094230.e1f62a9a603c.I7b57a481122074b1f40d39cd31db2e5262668eb2@changeid
drivers/net/wireless/intel/iwlwifi/mld/agg.c