diff options
author | 2024-05-16 10:18:53 +0800 | |
---|---|---|
committer | 2024-05-29 15:34:46 +0200 | |
commit | 0c2fd18f7ec552796179c14f13a0e06942f09d16 (patch) | |
tree | 028e927bfd03e8a39d924354390a3f8f224a292a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | wifi: iwlwifi: mvm: don't read past the mfuart notifcation (diff) | |
download | linux-rng-0c2fd18f7ec552796179c14f13a0e06942f09d16.tar.xz linux-rng-0c2fd18f7ec552796179c14f13a0e06942f09d16.zip |
wifi: mac80211: fix Spatial Reuse element size check
Currently, the way to check the size of Spatial Reuse IE data in the
ieee80211_parse_extension_element() is incorrect.
This is because the len variable in the ieee80211_parse_extension_element()
function is equal to the size of Spatial Reuse IE data minus one and the
value of returned by the ieee80211_he_spr_size() function is equal to
the length of Spatial Reuse IE data. So the result of the
len >= ieee80211_he_spr_size(data) statement always false.
To address this issue and make it consistent with the logic used elsewhere
with ieee80211_he_oper_size(), change the
"len >= ieee80211_he_spr_size(data)" to
“len >= ieee80211_he_spr_size(data) - 1”.
Fixes: 9d0480a7c05b ("wifi: mac80211: move element parsing to a new file")
Signed-off-by: Lingbo Kong <quic_lingbok@quicinc.com>
Link: https://msgid.link/20240516021854.5682-2-quic_lingbok@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions