From 00c74f60845d188f4e964ce6d62fdafe371b1e79 Mon Sep 17 00:00:00 2001 From: Hanumantha Reddy Pothula Date: Thu, 24 Nov 2016 20:13:32 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index a3b7649e3c..b5a3d98efc 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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);