From 308073384d01ef552c2ef0d9c5ed824ca755c5b1 Mon Sep 17 00:00:00 2001 From: Rachit Kankane Date: Wed, 27 Jun 2018 18:39:36 +0530 Subject: [PATCH] qcacld-3.0: Allocate DP_TRACE buffer dynamically Allocate memory for g_qdf_dp_trace_tbl buffer dynamically. Change-Id: Id9c757fd700929528b8a047248aa942134f60160 CRs-Fixed: 2268787 --- core/hdd/src/wlan_hdd_main.c | 3 +++ core/hdd/src/wlan_hdd_power.c | 1 + 2 files changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index afab911b5b20..fa555dfe6b10 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6892,6 +6892,8 @@ static void hdd_wlan_exit(struct hdd_context *hdd_ctx) unregister_reboot_notifier(&system_reboot_notifier); unregister_netdevice_notifier(&hdd_netdev_notifier); + qdf_dp_trace_deinit(); + hdd_wlan_stop_modules(hdd_ctx, false); hdd_driver_memdump_deinit(); @@ -11059,6 +11061,7 @@ err_unregister_netdev: unregister_netdevice_notifier(&hdd_netdev_notifier); err_wiphy_unregister: + qdf_dp_trace_deinit(); wiphy_unregister(hdd_ctx->wiphy); err_stop_modules: diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index fd32c85a1622..c46afb9f5531 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1417,6 +1417,7 @@ QDF_STATUS hdd_wlan_re_init(void) goto success; err_re_init: + qdf_dp_trace_deinit(); /* Allow the phone to go to sleep */ hdd_allow_suspend(WIFI_POWER_EVENT_WAKELOCK_DRIVER_REINIT); if (bug_on_reinit_failure)