diff options
author | Ilan Peer <ilan.peer@intel.com> | 2022-08-03 18:02:56 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-08-25 10:40:50 +0200 |
commit | dd1671ed4ae855a36c5d02d29d7b47e129d7abaf (patch) | |
tree | c73e2cb50b9293acfaef570304798947027ea4a3 /net | |
parent | a8f62399daa6917e7f9efeb79bce4dd2cd494a1e (diff) | |
download | linux-stable-dd1671ed4ae855a36c5d02d29d7b47e129d7abaf.tar.gz linux-stable-dd1671ed4ae855a36c5d02d29d7b47e129d7abaf.tar.bz2 linux-stable-dd1671ed4ae855a36c5d02d29d7b47e129d7abaf.zip |
wifi: cfg80211: Update RNR parsing to align with Draft P802.11be_D2.0
Based on changes in the specification the TBTT information in
the RNR can include MLD information, so update the parsing to
allow extracting the short SSID information in such a case.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 0134e5d5c81a..5382fc2003db 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -540,7 +540,7 @@ static int cfg80211_parse_ap_info(struct cfg80211_colocated_ap *entry, memcpy(entry->bssid, pos, ETH_ALEN); pos += ETH_ALEN; - if (length == IEEE80211_TBTT_INFO_OFFSET_BSSID_SSSID_BSS_PARAM) { + if (length >= IEEE80211_TBTT_INFO_OFFSET_BSSID_SSSID_BSS_PARAM) { memcpy(&entry->short_ssid, pos, sizeof(entry->short_ssid)); entry->short_ssid_valid = true; |