wifi: cfg80211: do not scan disabled links on 6GHz
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 18 Jun 2023 18:49:54 +0000 (21:49 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2023 10:08:40 +0000 (12:08 +0200)
commita0ed50112b98fa8e9bc85dbeafc82fd97ee06716
tree29ae94f2047c82aa9e663114ce175cfd11173717
parent2481b5da9c6b2ee1fde55a1c29eb2ca377145a10
wifi: cfg80211: do not scan disabled links on 6GHz

If a link is disabled on 6GHz, we should not send a probe request on the
channel to resolve it. Simply skip such RNR entries so that the link is
ignored.

Userspace can still see the link in the RNR and may generate an ML probe
request in order to associate to the (currently) disabled link.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230618214436.4f7384006471.Iff8f1081e76a298bd25f9468abb3a586372cddaa@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c