On 10/2/19 6:59 AM, Aaron Komisar wrote:
In non-ETSI reg domains scan is blocked when operating channel is a DFS ch.
For ETSI domains, however, once DFS channel is marked as available afer
the CAC, this channel will remain available even after leaving this channel.
Therefore a new CAC will not be required when scan is done.
In cfg80211 scan is not blocked for ETSI reg domains.
This patch enables scan in mac80211 as well when operating channel is a radar
channel for ETSI reg domains (unless CAC is in progress).
This is not the right approach to solve the problem.
The real reason of scan failure is because mac80211 checks if it's DFS
channel, but it doesn't check if CAC is done or not.
So to solve the issue, the right approach should be "check if DFS
channels and check if CAC is done".
You may refer how "cfg80211_reg_can_beacon()" is doing for that.
Thanks,
Peter