From 8bf9970419946040620a4e0cb1e7984c118695a7 Mon Sep 17 00:00:00 2001 From: Amar Singhal Date: Fri, 7 Feb 2020 15:04:15 -0800 Subject: [PATCH] qcacld-3.0: Remove DFS check after cac end notify DFS check cannot be on atomic channel, but full channel width. Change-Id: I6f7ea80923db6ea96c995d1d5a2faf8b4576950f CRs-Fixed: 2615778 --- core/sap/src/sap_fsm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 9224e3cb93..6dd171ca07 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1997,8 +1997,10 @@ static QDF_STATUS sap_cac_end_notify(mac_handle_t mac_handle, /* Don't check CAC for non-dfs channel */ profile = &sap_context->csr_roamProfile; freq = profile->op_freq; - if (!wlan_reg_chan_has_dfs_attribute_for_freq(mac->pdev, - freq)) + if (CHANNEL_STATE_DFS != + wlan_reg_get_5g_bonded_channel_state_for_freq(mac->pdev, + freq, + profile->ch_params.ch_width)) continue; /* If this is an end notification of a pre cac, the