qcacld-3.0: Use common scan api to wait on scan to get completed
Add changes to use common scan api to wait on scan to get completed
Change-Id: I45181908a6a81de21e4ba906f54ae3190aa212d0
CRs-Fixed: 2038093
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index 01293e2..4fc9c92 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -14756,9 +14756,8 @@
pScanInfo = &pAdapter->scan_info;
if (pScanInfo->mScanPending) {
hdd_debug("Disconnect is in progress, Aborting Scan");
- hdd_abort_mac_scan(pHddCtx, pAdapter->sessionId,
- INVALID_SCAN_ID,
- eCSR_SCAN_ABORT_DEFAULT);
+ wlan_abort_scan(pHddCtx->hdd_pdev, INVAL_PDEV_ID,
+ pAdapter->sessionId, INVALID_SCAN_ID, false);
}
wlan_hdd_cleanup_remain_on_channel_ctx(pAdapter);
#ifdef FEATURE_WLAN_TDLS