qcacld-2.0: Compare channel count variable against proper value
In ACS with Concurrency and MCC->SCC switch enable, if candidate
channel count is 1 then validation of candidate channel for DFS
channel is not happening as candidate channel count is wrongly
compared against 1 instead of 0.
Change-Id: Ic45a6583b799f144925f208dfde5165d0b74f18b
CRs-Fixed: 2197439
diff --git a/CORE/SAP/src/sapFsm.c b/CORE/SAP/src/sapFsm.c
index 3a25883..254f5a1 100644
--- a/CORE/SAP/src/sapFsm.c
+++ b/CORE/SAP/src/sapFsm.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -2357,7 +2357,7 @@
/*
* 3. Don't support MCC on DFS channel.
*/
- if (chan_cnt > 1) {
+ if (chan_cnt > 0) {
for (j = 0; j < chan_cnt; j++) {
if (channels[j] != 0
&& vos_nv_getChannelEnabledState(channels[j])