Browse Source

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 years ago
parent
commit
b4158a3455
1 changed files with 6 additions and 6 deletions
  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();