SCAN-OFFLOAD: Changes required for aborting the scan
When abort scan is issued, only the scan requests with a
particular session id needs to removed from the pending
queue and current ongoing scan should be abroted.
Change-Id: I02a45a3f18919d91bdeb050719d473681f6979e7
CRs-fixed: 500914
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 2dff132..f78c756 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -2280,7 +2280,7 @@
if ((pScanInfo != NULL) && pScanInfo->mScanPending)
{
INIT_COMPLETION(pScanInfo->abortscan_event_var);
- hdd_abort_mac_scan(staAdapter->pHddCtx);
+ hdd_abort_mac_scan(staAdapter->pHddCtx, pAdapter->sessionId);
status = wait_for_completion_interruptible_timeout(
&pScanInfo->abortscan_event_var,
msecs_to_jiffies(WLAN_WAIT_TIME_ABORTSCAN));
@@ -5904,7 +5904,7 @@
{
hddLog(VOS_TRACE_LEVEL_INFO, "Disconnect is in progress, "
"Aborting Scan");
- hdd_abort_mac_scan(pHddCtx);
+ hdd_abort_mac_scan(pHddCtx, pAdapter->sessionId);
}
#ifdef FEATURE_WLAN_TDLS