diff --git a/core/sap/src/sap_ch_select.c b/core/sap/src/sap_ch_select.c index 37b8e270ae64..e02618ff2aeb 100644 --- a/core/sap/src/sap_ch_select.c +++ b/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,