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)