summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCNSS_WLAN Service <cnssbldsw@qualcomm.com>2017-10-03 11:42:04 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-10-03 11:42:04 -0700
commit5d7028d9643fdf53f9fbddbbab0003e821bd43d8 (patch)
treee0bab46c02838ccfcbb2f41209555de2963225d7
parent5332f86422fe36ef5b0febd26dd68dbcb7ae625b (diff)
parente1bc69444ddd99e61df00f9280ce51c595f6bc9a (diff)
Merge "qcacld-3.0: Reset the mScanPending flag after cleaning scan queue" into wlan-cld3.driver.lnx.1.1
-rw-r--r--core/hdd/src/wlan_hdd_scan.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c
index 0393a5a2abdb..274a7e93a828 100644
--- a/core/hdd/src/wlan_hdd_scan.c
+++ b/core/hdd/src/wlan_hdd_scan.c
@@ -3716,6 +3716,8 @@ void hdd_cleanup_scan_queue(hdd_context_t *hdd_ctx)
hdd_adapter_t *adapter;
uint8_t source;
bool aborted = true;
+ QDF_STATUS status;
+ hdd_adapter_list_node_t *adapter_node = NULL, *next_node = NULL;
if (NULL == hdd_ctx) {
hdd_err("HDD context is Null");
@@ -3758,6 +3760,17 @@ void hdd_cleanup_scan_queue(hdd_context_t *hdd_ctx)
}
qdf_spin_unlock(&hdd_ctx->hdd_scan_req_q_lock);
+ status = hdd_get_front_adapter(hdd_ctx, &adapter_node);
+ while (NULL != adapter_node && QDF_IS_STATUS_SUCCESS(status)) {
+ adapter = adapter_node->pAdapter;
+ if (adapter->scan_info.mScanPending) {
+ adapter->scan_info.mScanPending = false;
+ complete(&adapter->scan_info.abortscan_event_var);
+ }
+ status = hdd_get_next_adapter(hdd_ctx, adapter_node,
+ &next_node);
+ adapter_node = next_node;
+ }
}
/**