Переглянути джерело

qcacld-3.0: Avoid dead loop in sap_process_avoid_ie

qcacld-2.0 to qcacld-3.0 propagation

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: If0e736c5b8a5638ea2bc96c3afb25be286959942
CRs-Fixed: 2019048
Will Huang 8 роки тому
батько
коміт
55ba104911
1 змінених файлів з 5 додано та 1 видалено
  1. 5 1
      core/sap/src/sap_ch_select.c

+ 5 - 1
core/sap/src/sap_ch_select.c

@@ -314,8 +314,12 @@ static void 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)
+			if (avoid_ch_ie->type !=
+					QCOM_VENDOR_IE_MCC_AVOID_CH) {
+				node = sme_scan_result_get_next(hal,
+					scan_result);
 				continue;
+			}
 
 			sap_ctx->sap_detected_avoid_ch_ie.present = 1;
 			QDF_TRACE(QDF_MODULE_ID_SAP,