[][MAC80211][WiFi6][core][Add cfg80211_is_wiphy_oper_chan check before clearing dfs state]

[Description]
Add cfg80211_is_wiphy_oper_chan check before clearing dfs state.
This avoids STA clearing the dfs state of the channel, which still has
APs/offchain operating on the it.
Note that cfg80211_any_wiphy_oper_chan is not used here beacause
it checks whether the rtnl lock is locked or not during the process.
However, it is kinda hard to add rtnl lock in cfg80211_sta_update_dfs_state,
beacause the rtnl lock is already locked in some path.
For example, rtnl is locked in the following path during ifconfig down/
iw interface del.
cfg80211_leave -> cfg80211_disconnect -> cfg80211_mlme_deauth -> ieee80211_mgd_deauth ->
ieee80211_set_disassoc

[Release-log]
N/A

Change-Id: I267d1d4dd814358cbc58bea9ff30c4b0a531f397
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9139479
1 file changed