diff --git a/core/sme/inc/sme_power_save_api.h b/core/sme/inc/sme_power_save_api.h index a57e04bcb09b..e58a55822037 100644 --- a/core/sme/inc/sme_power_save_api.h +++ b/core/sme/inc/sme_power_save_api.h @@ -85,8 +85,5 @@ QDF_STATUS sme_ps_close(mac_handle_t mac_handle); QDF_STATUS sme_ps_close_per_session(mac_handle_t mac_handle, uint32_t session_id); -bool sme_is_auto_ps_timer_running(mac_handle_t mac_handle, - uint32_t session_id); - #endif /* #if !defined(__SME_POWER_SAVE_API_H) */ diff --git a/core/sme/src/common/sme_power_save.c b/core/sme/src/common/sme_power_save.c index fe67550c7976..f239335bdf59 100644 --- a/core/sme/src/common/sme_power_save.c +++ b/core/sme/src/common/sme_power_save.c @@ -888,22 +888,3 @@ QDF_STATUS sme_ps_close_per_session(mac_handle_t mac_handle, sme_err("Cannot deallocate suto PS timer"); return qdf_status; } - -bool sme_is_auto_ps_timer_running(mac_handle_t mac_handle, - uint32_t session_id) -{ - struct mac_context *mac_ctx = MAC_CONTEXT(mac_handle); - struct ps_global_info *ps_global_info = &mac_ctx->sme.ps_global_info; - struct ps_params *ps_param = &ps_global_info->ps_params[session_id]; - bool status = false; - /* - * Check if the auto ps entry timer if running - */ - if (QDF_TIMER_STATE_RUNNING == - qdf_mc_timer_get_current_state( - &ps_param->auto_ps_enable_timer)) - status = true; - - return status; -} -