]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: fix multi-link element inheritance
authorJohannes Berg <johannes.berg@intel.com>
Fri, 8 May 2026 07:10:32 +0000 (09:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 May 2026 09:19:53 +0000 (11:19 +0200)
commitfe2d61a5d2849ee75dd4deeb2fe35f78d80721f8
tree177fdb59c00f621f3d6b67491e4fd32766a9bbc3
parenta74e893f30db64cdce0fc7a96d3baa417bcd55f5
wifi: mac80211: fix multi-link element inheritance

When parsing a beacon, mac80211 erroneously inherits any
reconfiguration or EPCS multi-link elements from the outer
elements into the multi-BSSID profile that's requested, if
connected to a non-transmitted BSS, unless that profile
has a non-inheritance element.

This also happens if parsing a multi-BSSID profile that
doesn't have a non-inheritance element.

Fix this by having an empty non-inheritance element so
cfg80211_is_element_inherited() is invoked in these cases
and causes the parser to skip the elements that should
never be inherited.

Fixes: cf36cdef10e2 ("wifi: mac80211: Add support for parsing Reconfiguration Multi Link element")
Fixes: 24711d60f849 ("wifi: mac80211: Support parsing EPCS ML element")
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20260508091032.92184c0a3f08.I3c43b0b63d2cef8a4ddddaef1c2faaeb1de711ad@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/parse.c