Skip to content

Commit 0914468

Browse files
ilanpeer2jmberg-intel
authored andcommitted
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 <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Link: https://lore.kernel.org/r/20230918140607.6d31d2a96baf.I6c4e3e3075d1d1878ee41f45190fdc6b86f18708@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent d097ae0 commit 0914468

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

net/wireless/scan.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,10 @@ static int cfg80211_scan_6ghz(struct cfg80211_registered_device *rdev)
908908
!cfg80211_find_ssid_match(ap, request))
909909
continue;
910910

911+
if (!is_broadcast_ether_addr(request->bssid) &&
912+
!ether_addr_equal(request->bssid, ap->bssid))
913+
continue;
914+
911915
if (!request->n_ssids && ap->multi_bss && !ap->transmitted_bssid)
912916
continue;
913917

0 commit comments

Comments
 (0)