summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbings <bings@codeaurora.org>2019-07-03 15:32:57 +0800
committerbings <bings@codeaurora.org>2019-07-04 10:17:27 +0800
commit3bea4bb66445d64db50100dc154cfa85cecf2a52 (patch)
treedcbf2d28de9cfa9871f99c16724ae00695dda2d2
parentece8bc124d708f8bc5a83de3d0b721a04e018cb5 (diff)
qcacld-3.0: Ignore radar detection when g_sta_sap_scc_on_dfs_chan=1
When g_sta_sap_scc_on_dfs_chan=1, TX is blocked if radar is detected. This is not correct. Nothing needs to do if radar is detected when g_sta_sap_scc_on_dfs_chan is set as 1. Change-Id: Ide26ee06ea6dfa3f1dcf356a394e35c2dfa39a5c CRs-Fixed: 2482683
-rw-r--r--core/wma/src/wma_features.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index 5ca0ec66cb2e..a3a042689b6b 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -9743,8 +9743,9 @@ int wma_dfs_indicate_radar(struct ieee80211com *ic,
if (!pmac->sap.SapDfsInfo.disable_dfs_ch_switch)
wma->dfs_ic->disable_phy_err_processing = true;
- if ((ichan->ic_ieee != (wma->dfs_ic->last_radar_found_chan)) ||
- (pmac->sap.SapDfsInfo.disable_dfs_ch_switch == true)) {
+ if (!cds_is_sta_sap_scc_allowed_on_dfs_channel() &&
+ ((ichan->ic_ieee != (wma->dfs_ic->last_radar_found_chan)) ||
+ (pmac->sap.SapDfsInfo.disable_dfs_ch_switch == true))) {
radar_event = (struct wma_dfs_radar_indication *)
qdf_mem_malloc(sizeof(struct wma_dfs_radar_indication));
if (radar_event == NULL) {