summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepthi Gowri <deepthi@codeaurora.org>2016-08-30 18:43:05 +0530
committerqcabuildsw <qcabuildsw@localhost>2016-09-11 17:12:11 -0700
commit48b89335670087cb286f0d5b7e52d4596a67d7ea (patch)
treeed12935ef718613de2a6cdc63c33c8d2f64c30a3
parent4577a9b955bd58e46c3a6071c8f1654854ee505f (diff)
qcacld-3.0: Skip DRSC channels during SAP ACS
qcacld-2.0 to qcacld-3.0 propagation We do not support SAP on DSRC channels, so skip the DRSC channels during sap channel initialization. CRs-Fixed: 1050454 Change-Id: If5544027bca7bc0a578978dfe91adc37e897e992 (cherry picked from commit 0005bfa2adcbe4bc06b96523bb387a7df902a6c7) (cherry picked from commit b8f62655ae5a86b745ca099fa371914a702abf59)
-rw-r--r--core/sap/src/sap_ch_select.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/sap/src/sap_ch_select.c b/core/sap/src/sap_ch_select.c
index 1b63daebaa6f..0f488b99bdfa 100644
--- a/core/sap/src/sap_ch_select.c
+++ b/core/sap/src/sap_ch_select.c
@@ -53,7 +53,7 @@
#include "lim_utils.h"
#include "parser_api.h"
#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
-
+#include "cds_utils.h"
#include "pld_common.h"
/*--------------------------------------------------------------------------
@@ -636,6 +636,10 @@ bool sap_chan_sel_init(tHalHandle halHandle,
continue;
}
+ /* Skip DSRC channels */
+ if (cds_is_dsrc_channel(cds_chan_to_freq(*pChans)))
+ continue;
+
if (true == chSafe) {
pSpectCh->chNum = *pChans;
pSpectCh->valid = eSAP_TRUE;