瀏覽代碼

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
Arun Kumar Khandavalli 4 年之前
父節點
當前提交
b4158a3455
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      core/hdd/src/wlan_hdd_main.c

+ 6 - 6
core/hdd/src/wlan_hdd_main.c

@@ -5860,6 +5860,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();
 }
 
@@ -7251,12 +7257,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();