diff options
author | Benjamin Berg <benjamin.berg@intel.com> | 2023-06-18 21:49:48 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-06-19 12:05:30 +0200 |
commit | 891d4d5831ee4c5e45a3ccba11577cdc6e57a726 (patch) | |
tree | 50cfcbe998c32fb28bfc6d78660149373cf04937 /net/wireless | |
parent | 39bcc5b8e16e75cfccc36fca3d425c64eef3df04 (diff) | |
download | linux-891d4d5831ee4c5e45a3ccba11577cdc6e57a726.tar.gz linux-891d4d5831ee4c5e45a3ccba11577cdc6e57a726.tar.bz2 linux-891d4d5831ee4c5e45a3ccba11577cdc6e57a726.zip |
wifi: cfg80211: Always ignore ML element
The element should never be inherited, so always exclude it.
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230618214435.c0e17989b4ed.I7cecb5ab7cd6919e61839b50ce5156904b41d7d8@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/scan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index dc71c6ac5bf5..095dc9db8750 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -218,6 +218,10 @@ bool cfg80211_is_element_inherited(const struct element *elem, if (elem->id == WLAN_EID_MULTIPLE_BSSID) return false; + if (elem->id == WLAN_EID_EXTENSION && elem->datalen > 1 && + elem->data[0] == WLAN_EID_EXT_EHT_MULTI_LINK) + return false; + if (!non_inherit_elem || non_inherit_elem->datalen < 2) return true; |