summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Puligilla <spuligil@codeaurora.org>2017-11-06 16:44:45 -0800
committersnandini <snandini@codeaurora.org>2017-11-08 13:49:14 -0800
commit8f6cfe1ec53b20384a6e128a79e4cfe96e15e31f (patch)
tree1d25d7b57dfbc916daee34c3de1d5926f619debd
parentdf75f1deefc956e9f6422216dfb29c791953b02c (diff)
qcacld-3.0: Set abort flag for an aborted scan
Umac is not setting the abort scan status when scan is aborted. Populate the abort scan reason at CSR when scan is aborted from the active list so that HDD can set the abort flag before sending scan complete to NL. Change-Id: I4325fee6dd0247ad6ad72ea19506171be2a4c327 CRs-Fixed: 2139034
-rw-r--r--core/sme/src/csr/csr_api_scan.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c
index 87a0d7980265..841fab1a0218 100644
--- a/core/sme/src/csr/csr_api_scan.c
+++ b/core/sme/src/csr/csr_api_scan.c
@@ -7721,14 +7721,10 @@ QDF_STATUS csr_abort_scan_from_active_list(tpAniSirGlobal mac_ctx,
if ((cmd->command == scan_cmd_type) &&
((cmd->u.scanCmd.scanID == scan_id) ||
(cmd->sessionId == session_id))) {
- if (abort_reason ==
- eCSR_SCAN_ABORT_DUE_TO_BAND_CHANGE)
- cmd->u.scanCmd.abort_scan_indication =
- eCSR_SCAN_ABORT_DUE_TO_BAND_CHANGE;
-
+ cmd->u.scanCmd.abort_scan_indication =
+ abort_reason;
csr_send_scan_abort(mac_ctx, cmd->sessionId,
cmd->u.scanCmd.scanID);
-
}
}
}