diff --git a/Kbuild b/Kbuild index d46cdc05503f..0031027df99f 100644 --- a/Kbuild +++ b/Kbuild @@ -2054,7 +2054,8 @@ cppflags-y += \ -DMEMORY_DEBUG \ -DNBUF_MEMORY_DEBUG \ -DNBUF_MAP_UNMAP_DEBUG \ - -DTIMER_MANAGER + -DTIMER_MANAGER \ + -DWLAN_DELAYED_WORK_DEBUG endif cppflags-y += -DWLAN_FEATURE_P2P diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 6d3e5303848e..e4f5003c8633 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2742,6 +2742,7 @@ static void hdd_check_for_leaks(struct hdd_context *hdd_ctx, bool is_ssr) if (is_ssr) return; + qdf_delayed_work_check_for_leaks(); qdf_mc_timer_check_for_leaks(); qdf_nbuf_map_check_for_leaks(); qdf_mem_check_for_leaks(); @@ -13305,6 +13306,7 @@ static QDF_STATUS hdd_qdf_init(void) qdf_lock_stats_init(); qdf_mem_init(); + qdf_delayed_work_feature_init(); qdf_mc_timer_manager_init(); qdf_event_list_init(); @@ -13338,6 +13340,7 @@ talloc_deinit: event_deinit: qdf_event_list_destroy(); qdf_mc_timer_manager_exit(); + qdf_delayed_work_feature_deinit(); qdf_mem_exit(); qdf_lock_stats_deinit(); qdf_debugfs_exit(); @@ -13360,6 +13363,7 @@ static void hdd_qdf_deinit(void) qdf_talloc_feature_deinit(); qdf_event_list_destroy(); qdf_mc_timer_manager_exit(); + qdf_delayed_work_feature_deinit(); qdf_mem_exit(); qdf_lock_stats_deinit(); qdf_debugfs_exit();