summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Huang <wilhuang@codeaurora.org>2017-03-14 14:12:13 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-20 07:28:55 -0700
commit38bd7c437814d1704af4ca44ed4fa89aa60b3ab9 (patch)
tree82b88e3b2a55e831b80c217c2525d26265ae1d2c
parentfb901760544602c1e77967ee862735bd7de2df47 (diff)
qcacld-2.0: Avoid dead loop in sap_process_avoid_ie
In function sap_process_avoid_ie, if type of avoid_ch_ie is not QCOM_VENDOR_IE_MCC_AVOID_CH, we need to get next node(scan result) for process. Otherwise the dead loop causes VosMcThread stuck. Change-Id: Ifd09f83742ce3ad3eaa18cd7694ee93054f70196 CRs-Fixed: 2019048
-rw-r--r--CORE/SAP/src/sapChSelect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/CORE/SAP/src/sapChSelect.c b/CORE/SAP/src/sapChSelect.c
index ea25fbfd3f12..f5f00e1ad2d1 100644
--- a/CORE/SAP/src/sapChSelect.c
+++ b/CORE/SAP/src/sapChSelect.c
@@ -372,6 +372,7 @@ sap_process_avoid_ie(tHalHandle hal,
if (temp_ptr) {
avoid_ch_ie = (struct sAvoidChannelIE*)temp_ptr;
if (avoid_ch_ie->type != QCOM_VENDOR_IE_MCC_AVOID_CH) {
+ node = sme_ScanResultGetNext(hal, scan_result);
continue;
}
sap_ctx->sap_detected_avoid_ch_ie.present = 1;