]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:53:54 +0000 (16:53 +0200)
commit051ab37aeb27b0bc17f0be88402ce91594448027
tree6f8a37e3853b81453d43358086fe83873f474f6b
parent58f660cc02e5c4ab60ac5d1299994883afdf22a1
mac80211: upgrade passive scan to active scan on DFS channels after beacon rx

commit b041b7b9de6e1d4362de855ab90f9d03ef323edd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/ieee80211_i.h
net/mac80211/scan.c