Skip to content

Commit

Permalink
wifi: cfg80211: Always ignore ML element
Browse files Browse the repository at this point in the history
The element should never be inherited, so always exclude it.

Signed-off-by: Benjamin Berg <[email protected]>
Signed-off-by: Gregory Greenman <[email protected]>
Link: https://lore.kernel.org/r/20230618214435.c0e17989b4ed.I7cecb5ab7cd6919e61839b50ce5156904b41d7d8@changeid
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
benzea authored and jmberg-intel committed Jun 19, 2023
1 parent 39bcc5b commit 891d4d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/wireless/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 891d4d5

Please sign in to comment.