From 397c19feee5f37f753a3eedae783a8821112e7a2 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 17 Dec 2018 20:08:10 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_is_auto_ps_timer_running() Change Id84eb7cf579a29da30f3366edef24821fcd5be55 ("qcacld-3.0: Cleanup qpower vendor command") removed the only client of sme_is_auto_ps_timer_running(). Since this function is now unused, remove it. Change-Id: I00692e5ac8981752e609bb21cef4c76cfc03c838 CRs-Fixed: 2370886 --- core/sme/inc/sme_power_save_api.h | 3 --- core/sme/src/common/sme_power_save.c | 19 ------------------- 2 files changed, 22 deletions(-) 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; -} -