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_main.c b/CORE/HDD/src/wlan_hdd_main.c
index df81f9b..5ec5a67 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -273,7 +273,7 @@
{
int result;
INIT_COMPLETION(pHddCtx->scan_info.abortscan_event_var);
- hdd_abort_mac_scan(pAdapter->pHddCtx);
+ hdd_abort_mac_scan(pAdapter->pHddCtx, pAdapter->sessionId);
result = wait_for_completion_interruptible_timeout(
&pHddCtx->scan_info.abortscan_event_var,
msecs_to_jiffies(WLAN_WAIT_TIME_ABORTSCAN));
@@ -3989,7 +3989,7 @@
}
else
{
- hdd_abort_mac_scan(pHddCtx);
+ hdd_abort_mac_scan(pHddCtx, pAdapter->sessionId);
}
if (test_bit(SME_SESSION_OPENED, &pAdapter->event_flags))
@@ -4893,7 +4893,7 @@
// we are about to Request Full Power, and since that is synchronized,
// the expectation is that by the time Request Full Power has completed,
// all scans will be cancelled.
- hdd_abort_mac_scan( pHddCtx );
+ hdd_abort_mac_scan( pHddCtx, pAdapter->sessionId);
//Stop the timer if already running
if (VOS_TIMER_STATE_RUNNING ==