]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:02 +0000 (13:02 +0100)
commit05d9eaa44498e01040da6344558bdd4342afd065
tree5742a0e3e6ca592515ee19c2c977fc5499074c2b
parent03b6e5e86827ef696cbfd5fc2625e35f1abab72d
wifi: mac80211: fix vendor-specific inheritance

[ Upstream commit 130067e9c13bdc4820748ef16076a6972364745f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/parse.c