From 6bdb77be277d7abab50637952a3d7457c41e4033 Mon Sep 17 00:00:00 2001 From: Mukul Sharma Date: Mon, 25 Sep 2017 18:47:42 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index e19d713999d9..5d837a59a099 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -11493,6 +11493,7 @@ static void hdd_cleanup_present_mode(struct hdd_context *hdd_ctx, case QDF_GLOBAL_FTM_MODE: if (driver_status != DRIVER_MODULES_CLOSED) { hdd_abort_mac_scan_all_adapters(hdd_ctx); + wlan_cfg80211_cleanup_scan_queue(hdd_ctx->hdd_pdev); hdd_stop_all_adapters(hdd_ctx); } hdd_deinit_all_adapters(hdd_ctx, false);