mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
wifi: cfg80211: Fix 6GHz scan configuration
[ Upstream commit 0914468adf
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bbec172451
commit
b64eb31a1b
1 changed files with 4 additions and 0 deletions
|
@ -874,6 +874,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue