]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: fix vendor-specific inheritance
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2025 10:24:51 +0000 (11:24 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Feb 2025 14:07:34 +0000 (15:07 +0100)
commit130067e9c13bdc4820748ef16076a6972364745f
tree34bf64d6875140665ab1ea4ba2996b0c74bbdc28
parent99ca2c28e6b68084a0fb65585df09b9e28c3ec16
wifi: mac80211: fix vendor-specific inheritance

If there's any vendor-specific element in the subelements
then the outer element parsing must not parse any vendor
element at all. This isn't implemented correctly now due
to parsing into the pointers and then overriding them, so
explicitly skip vendor elements if any exist in the sub-
elements (non-transmitted profile or per-STA profile).

Fixes: 671042a4fb77 ("mac80211: support non-inheritance element")
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250221112451.fd71e5268840.I9db3e6a3367e6ff38d052d07dc07005f0dd3bd5c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/parse.c