]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: fix MLE non-inheritance parsing
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2025 10:24:50 +0000 (11:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:02 +0000 (13:02 +0100)
commit03b6e5e86827ef696cbfd5fc2625e35f1abab72d
tree54fecdff8862a1b057979d5533ab691fb4283330
parent8ae5106e5df84c4d79aa2e2bfd9f935202e14a6d
wifi: mac80211: fix MLE non-inheritance parsing

[ Upstream commit 99ca2c28e6b68084a0fb65585df09b9e28c3ec16 ]

The code is erroneously applying the non-inheritance element
to the inner elements rather than the outer, which is clearly
completely wrong. Fix it by finding the MLE basic element at
the beginning, and then applying the non-inheritance for the
outer parsing.

While at it, do some general cleanups such as not allowing
callers to try looking for a specific non-transmitted BSS
and link at the same time.

Fixes: 45ebac4f059b ("wifi: mac80211: Parse station profile from association response")
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250221112451.b46d42f45b66.If5b95dc3c80208e0c62d8895fb6152aa54b6620b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mlme.c
net/mac80211/parse.c