summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukul Sharma <mukul@codeaurora.org>2017-07-25 18:19:44 +0530
committersnandini <snandini@codeaurora.org>2017-08-16 14:29:22 -0700
commit010a2d587e40689907bd4ce1be789da7756e9c53 (patch)
tree37f2e08e85a574c6aca364ff562100ae197b7a51
parent1e8593ccbfdb8e1f5004f28020dad0c2af8ef2a3 (diff)
qcacld-3.0: Flush pending scan queue during con mode handling
Currently, Host is operating into STA (mission mode) and scan is pending into the pending queue. As a part of the mission mode to ftm transition scan pending queue is not flushed. Hence later during driver unload, host try to flush this pending request but sta adpater is already freed during con mode transition which lead to kernel panic. As a part of this fix, Host ensures to flush pending scan queue during con mode handling. Change-Id: I13da323217a36777b9307c1bc76febc1a1b9b591 CRs-Fixed: 2082105
-rw-r--r--core/hdd/src/wlan_hdd_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index d66434af74a8..3c7e887c124c 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -11412,6 +11412,7 @@ static void hdd_cleanup_present_mode(hdd_context_t *hdd_ctx,
case QDF_GLOBAL_FTM_MODE:
if (driver_status != DRIVER_MODULES_CLOSED) {
hdd_abort_mac_scan_all_adapters(hdd_ctx);
+ hdd_cleanup_scan_queue(hdd_ctx);
hdd_stop_all_adapters(hdd_ctx);
}
hdd_deinit_all_adapters(hdd_ctx, false);