qcacld-3.0: Fix SAP 160Mhz radar event miss issue

When SAP operated in channel 36 with 160Mhz, the primary channel
36 is non-dfs and existing checking dfs will drop the radar event
if the radar detected on channel 52. Change policy mgr API to
check the dfs flags instead of primary channel state.

Change-Id: Ie2f242182b8df30e5d1875e278c5ebffa2e7cafd
CRs-Fixed: 2865173
This commit is contained in:
Liangwei Dong 2021-01-29 10:43:00 +08:00 • committed by snandini
commit 9380857123
4 changed files with 56 additions and 15 deletions

View file

@ -3306,10 +3306,11 @@ uint32_t policy_mgr_get_dfs_beaconing_session_id(
conn_index++) {
conn_info = &pm_conc_connection_list[conn_index];
if (conn_info->in_use &&
wlan_reg_chan_has_dfs_attribute_for_freq(
pm_ctx->pdev, conn_info->freq) &&
WLAN_REG_IS_5GHZ_CH_FREQ(conn_info->freq) &&
(conn_info->ch_flagext & (IEEE80211_CHAN_DFS |
IEEE80211_CHAN_DFS_CFREQ2)) &&
(conn_info->mode == PM_SAP_MODE ||
conn_info->mode == PM_P2P_GO_MODE)) {
conn_info->mode == PM_P2P_GO_MODE)) {
session_id =
pm_conc_connection_list[conn_index].vdev_id;
break;