summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRakesh Sunki <rsunki@qca.qualcomm.com>2015-08-13 13:48:38 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-08-18 03:02:53 -0700
commit21f446b7fd3e094a505cbae027e343bc07f79727 (patch)
treefa056eb747e5267640d159bdd23eaf6c031984d6
parent9b3c749f3cc9d39a06024b1887518f8a999a174c (diff)
qcacld: Fix to correctly enforce gEnableDFSChnlScan INI setting
The ini item gEnableDFSChnlScan when set should disable the STA dfs channel scan. It is observed that even with the above param set to disable the dfs channel scan, PE fails to enforce the setting, resulting in dfs channels being scanned. Fix to consider the ini parameter setting when creating a scan channel list during the csr scan request copy from upper layers. Change-Id: I0b59f1d631235d1399400dc95e80a4ea2934ec32 CRs-Fixed: 890209
-rw-r--r--CORE/SME/src/csr/csrApiScan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/SME/src/csr/csrApiScan.c b/CORE/SME/src/csr/csrApiScan.c
index 2b05efbd0fc5..54e8152f76b7 100644
--- a/CORE/SME/src/csr/csrApiScan.c
+++ b/CORE/SME/src/csr/csrApiScan.c
@@ -6318,7 +6318,8 @@ eHalStatus csrScanCopyRequest(tpAniSirGlobal pMac, tCsrScanRequest *pDstReq, tCs
tANI_U32 index = 0;
tANI_U32 new_index = 0;
eNVChannelEnabledType NVchannel_state;
- uint8_t skip_dfs_chnl = pMac->roam.configParam.initial_scan_no_dfs_chnl;
+ bool skip_dfs_chnl = pMac->roam.configParam.initial_scan_no_dfs_chnl ||
+ !pMac->scan.fEnableDFSChnlScan;
do
{