diff options
author | Ilan Peer <ilan.peer@intel.com> | 2023-09-18 13:10:54 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-09-25 08:41:11 +0200 |
commit | 0914468adf92296c4cba8a2134e06e3dea150f2e (patch) | |
tree | 22d61f8ede238e3745b426ada809600501b68737 /net | |
parent | wifi: mac80211: fix potential key leak (diff) | |
download | linux-0914468adf92296c4cba8a2134e06e3dea150f2e.tar.xz linux-0914468adf92296c4cba8a2134e06e3dea150f2e.zip |
wifi: cfg80211: Fix 6GHz scan configuration
When the scan request includes a non broadcast BSSID, when adding the
scan parameters for 6GHz collocated scanning, do not include entries
that do not match the given BSSID.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230918140607.6d31d2a96baf.I6c4e3e3075d1d1878ee41f45190fdc6b86f18708@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/scan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 0cf1ce7b6934..939deecf0bbe 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -908,6 +908,10 @@ static int cfg80211_scan_6ghz(struct cfg80211_registered_device *rdev) !cfg80211_find_ssid_match(ap, request)) continue; + if (!is_broadcast_ether_addr(request->bssid) && + !ether_addr_equal(request->bssid, ap->bssid)) + continue; + if (!request->n_ssids && ap->multi_bss && !ap->transmitted_bssid) continue; |