Commit 891d4d58 authored by Benjamin Berg's avatar Benjamin Berg Committed by Johannes Berg

wifi: cfg80211: Always ignore ML element

The element should never be inherited, so always exclude it.
Signed-off-by: default avatarBenjamin Berg <benjamin.berg@intel.com>
Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230618214435.c0e17989b4ed.I7cecb5ab7cd6919e61839b50ce5156904b41d7d8@changeidSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 39bcc5b8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment