mac80211: upgrade passive scan to active scan on DFS channels after beacon rx
authorFelix Fietkau <nbd@nbd.name>
Wed, 20 Apr 2022 10:49:07 +0000 (12:49 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 4 May 2022 20:49:38 +0000 (22:49 +0200)
commitb041b7b9de6e1d4362de855ab90f9d03ef323edd
tree7e0da37319c42cb17d78606eaf988f5f3cba8559
parent0969b96352d69c25855d90fd6d74bd619f1f1f0c
mac80211: upgrade passive scan to active scan on DFS channels after beacon rx

In client mode, we can't connect to hidden SSID APs or SSIDs not advertised
in beacons on DFS channels, since we're forced to passive scan. Fix this by
sending out a probe request immediately after the first beacon, if active
scan was requested by the user.

Cc: stable@vger.kernel.org
Reported-by: Catrinel Catrinescu <cc@80211.de>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20220420104907.36275-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/scan.c