qcacld-3.0: Cleanup measurement data for failed RRM scan

When the beacon report measurement is done and roaming
is triggered, then rrm scan gets aborted due to roaming
and the measurement gets dropped in the middle and cleanup
is not done properly.

So cleanup the measurement index for which the RRM scan
is dropped during roam.

Change-Id: Ic31a8587494fc298fb7fbdef99b8bf917e10024f
CRs-Fixed: 3316624
Этот коммит содержится в:
Pragaspathi Thilagaraj
2022-10-21 21:11:14 +05:30
коммит произвёл Madan Koyyalamudi
родитель 2f216031e2
Коммит bdef50f9cd

Просмотреть файл

@@ -568,21 +568,21 @@ static QDF_STATUS sme_rrm_send_scan_result(struct mac_context *mac_ctx,
sizeof(next_result));
if (!scanresults_arr) {
status = QDF_STATUS_E_NOMEM;
goto rrm_send_scan_results_done;
goto send_scan_results;
}
status = wlan_mlme_get_bssid_vdev_id(mac_ctx->pdev, session_id,
&bss_peer_mac);
if (QDF_IS_STATUS_ERROR(status)) {
sme_err("Invalid session %d", session_id);
sme_err("BSSID not found for vdev: %d", session_id);
status = QDF_STATUS_E_FAILURE;
goto rrm_send_scan_results_done;
goto send_scan_results;
}
if (!cm_is_vdevid_connected(mac_ctx->pdev, session_id)) {
sme_err("Invalid session");
sme_err("vdev:%d is not connected", session_id);
status = QDF_STATUS_E_FAILURE;
goto rrm_send_scan_results_done;
goto send_scan_results;
}
while (scan_results) {
@@ -623,6 +623,8 @@ static QDF_STATUS sme_rrm_send_scan_result(struct mac_context *mac_ctx,
if (counter >= num_scan_results)
break;
}
send_scan_results:
/*
* The beacon report should be sent whether the counter is zero or
* non-zero. There might be a few scan results in the cache but not