diff options
| author | Hanumantha Reddy Pothula <c_hpothu@codeaurora.org> | 2016-11-24 20:13:32 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-12-13 23:58:29 -0800 |
| commit | fd43f2e52c492c2a928c9610c920e95739c4d39a (patch) | |
| tree | 966df92d37a15406dbfb59a3a0a099b250ede144 | |
| parent | dd13da8c4d2698d6cab4ece894c586c0973f85d7 (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 1f249def4d32..698fb016d46f 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4761,6 +4761,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); @@ -4886,7 +4888,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); @@ -8288,7 +8289,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); |
