]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mac80211: fix non-transmitted BSSID profile search
authorJohannes Berg <johannes.berg@intel.com>
Mon, 30 Jun 2025 13:45:01 +0000 (15:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 7 Jul 2025 08:42:48 +0000 (10:42 +0200)
commite1e6ebf490e55fee1ae573aa443c1d4aea5e4a40
treec0ecd3ea0be4deb50e53bd78c9a80e113ed6801e
parent8af596e8ae44c3bcf36d1aea09fc9a6f17c555e5
wifi: mac80211: fix non-transmitted BSSID profile search

When the non-transmitted BSSID profile is found, immediately return
from the search to not return the wrong profile_len when the profile
is found in a multiple BSSID element that isn't the last one in the
frame.

Fixes: 5023b14cf4df ("mac80211: support profile split between elements")
Reported-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
Link: https://patch.msgid.link/20250630154501.f26cd45a0ecd.I28e0525d06e8a99e555707301bca29265cf20dc8@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/parse.c