summaryrefslogtreecommitdiffstats
path: root/net/mac80211/spectmgmt.c
diff options
context:
space:
mode:
authorGilad Itzkovitch <gilad.itzkovitch@morsemicro.com>2022-11-24 01:53:36 +0100
committerJohannes Berg <johannes.berg@intel.com>2023-02-14 14:48:25 +0100
commite6f5dcb7ec9badd9500f64b087f7243c37300d63 (patch)
treeba34a1eaf9329394e2fc84106d187d692ba1fde2 /net/mac80211/spectmgmt.c
parentwifi: mac80211: avoid u32_encode_bits() warning (diff)
downloadlinux-e6f5dcb7ec9badd9500f64b087f7243c37300d63.tar.xz
linux-e6f5dcb7ec9badd9500f64b087f7243c37300d63.zip
wifi: mac80211: Fix for Rx fragmented action frames
The ieee80211_accept_frame() function performs a number of early checks to decide whether or not further processing needs to be done on a frame. One of those checks is the ieee80211_is_robust_mgmt_frame() function. It requires to peek into the frame payload, but because defragmentation does not occur until later on in the receive path, this peek is invalid for any fragment other than the first one. Also, in this scenario there is no STA and so the fragmented frame will be dropped later on in the process and will not reach the upper stack. This can happen with large action frames at low rates, for example, we see issues with DPP on S1G. This change will only check if the frame is robust if it's the first fragment. Invalid fragmented packets will be discarded later after defragmentation is completed. Signed-off-by: Gilad Itzkovitch <gilad.itzkovitch@morsemicro.com> Link: https://lore.kernel.org/r/20221124005336.1618411-1-gilad.itzkovitch@morsemicro.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/spectmgmt.c')
0 files changed, 0 insertions, 0 deletions