mac80211: fix scan when operating on DFS channels in ETSI domains
authorAaron Komisar <aaron.komisar@tandemg.com>
Wed, 2 Oct 2019 13:59:07 +0000 (13:59 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 7 Oct 2019 20:10:50 +0000 (22:10 +0200)
commitdc0c18ed229cdcca283dd78fefa38273ec37a42c
tree986840000f070e524e4c802074e1cea589c05c9c
parent95697f9907bfe3eab0ef20265a766b22e27dde64
mac80211: fix scan when operating on DFS channels in ETSI domains

In non-ETSI regulatory domains scan is blocked when operating channel
is a DFS channel. For ETSI, however, once DFS channel is marked as
available after the CAC, this channel will remain available (for some
time) even after leaving this channel.

Therefore a scan can be done without any impact on the availability
of the DFS channel as no new CAC is required after the scan.

Enable scan in mac80211 in these cases.

Signed-off-by: Aaron Komisar <aaron.komisar@tandemg.com>
Link: https://lore.kernel.org/r/1570024728-17284-1-git-send-email-aaron.komisar@tandemg.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/mac80211/scan.c
net/wireless/reg.c
net/wireless/reg.h