]> www.infradead.org Git - users/willy/pagecache.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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Feb 2025 14:07:29 +0000 (15:07 +0100)
commit99ca2c28e6b68084a0fb65585df09b9e28c3ec16
tree0eed418aa2b7b7833139b1cc1924b38969e8a16d
parent3640dbc1f75ce15d128ea4af44226960d894f3fd
wifi: mac80211: fix MLE non-inheritance parsing

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>
net/mac80211/mlme.c
net/mac80211/parse.c