From ea468c6c526ab8af58819260104c5e83b6d621e8 Mon Sep 17 00:00:00 2001 From: Jingxiang Ge Date: Fri, 3 Jul 2020 16:51:00 +0800 Subject: [PATCH] qcacld-3.0: cleanup dfs cac timer for p2pgo in SSR There is possible dfs cac timer start on p2pgo, then ssr happens, which cause timer leak. Clean up dfs cac timer when stop adapter. Change-Id: I8fe67420196ac752941476312caa7a80f2b3e264 CRs-Fixed: 2720896 --- core/hdd/src/wlan_hdd_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 891f80a2ab4f6..ff1caabbe35c8 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6735,11 +6735,13 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx, if (!wlan_sap_is_pre_cac_context(sap_ctx) && (hdd_ctx->sap_pre_cac_work.fn)) cds_flush_work(&hdd_ctx->sap_pre_cac_work); - wlansap_cleanup_cac_timer(sap_ctx); /* fallthrough */ case QDF_P2P_GO_MODE: + sap_ctx = WLAN_HDD_GET_SAP_CTX_PTR(adapter); + wlansap_cleanup_cac_timer(sap_ctx); + cds_flush_work(&adapter->sap_stop_bss_work); if (qdf_atomic_read(&adapter->session.ap.acs_in_progress)) { hdd_info("ACS in progress, wait for complete");