Explorar el Código

qcacld-3.0: Deinit tx/rx histogram stats from hdd destroy context

Presently, tx/rx histogram stats are initialized during hdd create
context, but de-initialization of histogram stats is not processed
during hdd destroy context.

De-initialize histogram stats while processing hdd destroy context.

Change-Id: Id2eff48838d34e99dfa3dd5713bca2cd5a2c774e
CRs-Fixed: 1094115
Hanumantha Reddy Pothula hace 8 años
padre
commit
00c74f6084
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      core/hdd/src/wlan_hdd_main.c

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

@@ -4799,6 +4799,8 @@ static void hdd_context_destroy(hdd_context_t *hdd_ctx)
 	if (QDF_GLOBAL_FTM_MODE != hdd_get_conparam())
 		hdd_logging_sock_deactivate_svc(hdd_ctx);
 
+	wlan_hdd_deinit_tx_rx_histogram(hdd_ctx);
+
 	hdd_context_deinit(hdd_ctx);
 
 	qdf_mem_free(hdd_ctx->config);
@@ -4926,7 +4928,6 @@ static void hdd_wlan_exit(hdd_context_t *hdd_ctx)
 	cds_flush_work(&hdd_ctx->roc_req_work);
 
 	wlansap_global_deinit();
-	wlan_hdd_deinit_tx_rx_histogram(hdd_ctx);
 	wiphy_unregister(wiphy);
 	wlan_hdd_cfg80211_deinit(wiphy);
 
@@ -8324,7 +8325,6 @@ err_exit_nl_srv:
 
 	cds_deinit_ini_config();
 err_hdd_free_context:
-	wlan_hdd_deinit_tx_rx_histogram(hdd_ctx);
 	qdf_mc_timer_destroy(&hdd_ctx->iface_change_timer);
 	mutex_destroy(&hdd_ctx->iface_change_lock);
 	hdd_context_destroy(hdd_ctx);