Ver Fonte

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
Jeff Johnson há 6 anos atrás
pai
commit
397c19feee
2 ficheiros alterados com 0 adições e 22 exclusões
  1. 0 3
      core/sme/inc/sme_power_save_api.h
  2. 0 19
      core/sme/src/common/sme_power_save.c

+ 0 - 3
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) */
 

+ 0 - 19
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;
-}
-