Переглянути джерело

qcacld-3.0: Use link info pointer to cleanup 11ax conn info

To cleanup the HE connection info in station context of each link,
change the hdd_cleanup_he_operation_info() function argument
to link info pointer instead of adapter.
Existing references are changed to deflink.

Change-Id: I49a2e4b1b521bd435ba0ba26a3c7f421e7fed45c
CRs-Fixed: 3462494
Vinod Kumar Pirla 2 роки тому
батько
коміт
99f839dada
1 змінених файлів з 6 додано та 5 видалено
  1. 6 5
      core/hdd/src/wlan_hdd_main.c

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

@@ -7305,19 +7305,19 @@ void hdd_deinit_adapter(struct hdd_context *hdd_ctx,
      defined(WLAN_FEATURE_11AX)
 /**
  * hdd_cleanup_he_operation_info() - cleanup he operation info
- * @adapter: Adapter structure
+ * @link_info: pointer to link_info struct in adapter
  *
  * This function destroys he operation information
  *
  * Return: none
  */
-static void hdd_cleanup_he_operation_info(struct hdd_adapter *adapter)
+static void hdd_cleanup_he_operation_info(struct wlan_hdd_link_info *link_info)
 {
 	struct hdd_station_ctx *hdd_sta_ctx;
 
 	hdd_debug("cleanup he operation info");
 
-	hdd_sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter->deflink);
+	hdd_sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(link_info);
 
 	if (hdd_sta_ctx->cache_conn_info.he_operation) {
 		qdf_mem_free(hdd_sta_ctx->cache_conn_info.he_operation);
@@ -7325,7 +7325,8 @@ static void hdd_cleanup_he_operation_info(struct hdd_adapter *adapter)
 	}
 }
 #else
-static inline void hdd_cleanup_he_operation_info(struct hdd_adapter *adapter)
+static inline void
+hdd_cleanup_he_operation_info(struct wlan_hdd_link_info *link_info)
 {
 }
 #endif
@@ -7357,7 +7358,7 @@ static void hdd_cleanup_prev_ap_bcn_ie(struct wlan_hdd_link_info *link_info)
 
 void hdd_cleanup_conn_info(struct hdd_adapter *adapter)
 {
-	hdd_cleanup_he_operation_info(adapter);
+	hdd_cleanup_he_operation_info(adapter->deflink);
 	hdd_cleanup_prev_ap_bcn_ie(adapter->deflink);
 }