qcacld-3.0: Allocate DP_TRACE buffer dynamically

Allocate memory for g_qdf_dp_trace_tbl buffer dynamically.

Change-Id: Id9c757fd700929528b8a047248aa942134f60160
CRs-Fixed: 2268787
This commit is contained in:
Rachit Kankane 2018-06-27 18:39:36 +05:30 • committed by nshrivas
commit 308073384d
2 changed files with 4 additions and 0 deletions

View file

@ -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:

View file

@ -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)