From 88e1047591a2568e73bcead84aba84d595f69cea Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Sun, 28 Jun 2020 22:15:12 +0530 Subject: [PATCH] qcacld-3.0: Free scan ie's as part of uninit cfg80211 ops During SSR with the new changes the stop adapter would be invoked, this would free the scan ie's and will not be able to configured after the SSR. Free the scan ie's as part of the uninit which would be called as part of the netdev down. Change-Id: I781eefbf0ae7a9e64bc6cb2ead98f45919587f64 CRs-Fixed: 2724670 --- core/hdd/src/wlan_hdd_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index f9e4328f222d..2c345f260acf 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -5855,6 +5855,12 @@ void hdd_deinit_adapter(struct hdd_context *hdd_ctx, break; } + if (adapter->scan_info.default_scan_ies) { + qdf_mem_free(adapter->scan_info.default_scan_ies); + adapter->scan_info.default_scan_ies = NULL; + adapter->scan_info.default_scan_ies_len = 0; + } + hdd_exit(); } @@ -7246,12 +7252,6 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx, break; } - if (adapter->scan_info.default_scan_ies) { - qdf_mem_free(adapter->scan_info.default_scan_ies); - adapter->scan_info.default_scan_ies = NULL; - adapter->scan_info.default_scan_ies_len = 0; - } - /* This function should be invoked at the end of this api*/ hdd_dump_func_call_map(); hdd_exit();