diff --git a/core/cds/inc/cds_api.h b/core/cds/inc/cds_api.h index ab2a3a2d2e45..1f0a6a323151 100644 --- a/core/cds/inc/cds_api.h +++ b/core/cds/inc/cds_api.h @@ -345,6 +345,12 @@ bool cds_is_packet_log_enabled(void); uint64_t cds_get_monotonic_boottime(void); +/** + * cds_trigger_recovery_wrapper() - a temp wrapper to trigger self recovery + * + * Return: none + */ +void cds_trigger_recovery_wrapper(void); void cds_trigger_recovery(bool); void cds_set_wakelock_logging(bool value); diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index d4b51996448b..021f38d0fe11 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -138,6 +138,7 @@ v_CONTEXT_t cds_init(void) qdf_lock_stats_init(); qdf_mem_init(); qdf_mc_timer_manager_init(); + qdf_register_self_recovery_callback(cds_trigger_recovery_wrapper); gp_cds_context = &g_cds_context; @@ -1733,6 +1734,11 @@ static void cds_config_recovery_work(qdf_device_t qdf_ctx) } } +void cds_trigger_recovery_wrapper(void) +{ + cds_trigger_recovery(false); +} + /** * cds_trigger_recovery() - trigger self recovery * @skip_crash_inject: Boolean value to skip to send crash inject cmd