summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahesh Kumar Kalikot Veetil <mkalikot@qca.qualcomm.com>2014-08-25 13:05:00 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-08-29 15:50:32 -0700
commit54916d85eec55d67d55654711c5e144bf45da49d (patch)
tree02ec40c668936fba5ef91cc08a3d365261972ccd
parentb13054ebd23f6a019f363998291cfcf642356a2d (diff)
qcacld: sap: Fix to select SAP channel during DFS operation.
The issue with current design is that restricting all ACS channels to DFS, we may end up in default channel eventhough it is not in the range. this gerrit will fix the AP coming up in DFS channels in AP+STA case which is a violation. Change-Id: Ida8f74e429bad2c3b06faf352854d60832cc645e CRs-Fixed: 717012
-rw-r--r--CORE/SAP/src/sapChSelect.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/CORE/SAP/src/sapChSelect.c b/CORE/SAP/src/sapChSelect.c
index 7ab4756b1f80..2099835f1324 100644
--- a/CORE/SAP/src/sapChSelect.c
+++ b/CORE/SAP/src/sapChSelect.c
@@ -687,7 +687,11 @@ v_BOOL_t sapChanSelInit(tHalHandle halHandle,
pSpectCh++;
}
}
- return eSAP_TRUE;
+
+ if (pSpectCh->chNum > 0)
+ return eSAP_TRUE;
+ else
+ return eSAP_FALSE;
}
/*==========================================================================
@@ -2471,11 +2475,10 @@ v_U8_t sapSelectChannel(tHalHandle halHandle, ptSapContext pSapCtx, tScanResult
}
// preference is given to channels in the configured range which are safe
- // if there is not such one, then we return start channel in the configuration
if (firstSafeChannelInRange != SAP_CHANNEL_NOT_SELECTED)
return firstSafeChannelInRange;
else
- return startChannelNum;
+ return SAP_CHANNEL_NOT_SELECTED;
#endif /* !FEATURE_WLAN_CH_AVOID */
#endif /* SOFTAP_CHANNEL_RANGE */
}