CHROMIUM: rtw88: replace RADAR flag with NO_IR for dfs channel

Currently mac80211 don't allow active scan on DFS channels, it limits
connecting hidden AP on DFS channel. We take advantage of beacon hint
in cfg80211, by replacing IEEE80211_CHAN_RADAR of channel flags with
IEEE80211_CHAN_NO_IR, to allow active scan in channels where beacon is
found. Another, to avoid keeping active scan when radar signal suddenly
exists, restore IEEE80211_CHAN_NO_IR if the interval of two scans exceeds
set time.

Signed-off-by: Chin-Yen Lee <timlee@realtek.com>

BUG=b:190353955
TEST=suite:wifi_matfunc;
     DFS channel Test
        a) check no probe request is sent if no AP exists
        b) check probe request is sent after power on one AP;
           power off AP, check no probe req is sent after 10s
        c) connect to AP with hidden SSID
        d) disconnect AP and repeat step a,b,c

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Abhishek Kumar <kuabhs@chromium.org>
[kuabhs: Extend the TEST section with additional test details]
Change-Id: Ia02fa35ae1f589a6bdf60a2834359a4152c645aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3074386
Reviewed-by: Matthew Wang <matthewmwang@chromium.org>
Commit-Queue: Matthew Wang <matthewmwang@chromium.org>
4 files changed