summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Kumar <rajekuma@codeaurora.org>2017-07-30 09:18:15 -0700
committersnandini <snandini@codeaurora.org>2017-08-01 14:30:56 -0700
commit7788999e0ea3f4806bf766b3c4df87694be697ce (patch)
treea6e4cd37d545ac14a467f5c5424771d0f5796fdf
parent09073c881c509e1a233feafd87fa3517d6fd692f (diff)
qcacld-3.0: Flush power save command only for INFRA STA VDEV
Currently flush power save command logic is sending power save enable for all VDEVs. FW does not support power save for SAP VDEV hence add check to make sure to flush power save command only for INFRA STA VDEV. Change-Id: I8f162535f8a4c3b66b6ed136c3c0d599c7dc0dba CRs-Fixed: 2084683
-rw-r--r--core/sme/src/common/sme_power_save.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/sme/src/common/sme_power_save.c b/core/sme/src/common/sme_power_save.c
index 9c1f268a060d..13a36ac7c7a5 100644
--- a/core/sme/src/common/sme_power_save.c
+++ b/core/sme/src/common/sme_power_save.c
@@ -543,6 +543,13 @@ QDF_STATUS sme_ps_timer_flush_sync(tHalHandle hal, uint8_t session_id)
if (tstate != QDF_TIMER_STATE_RUNNING)
return QDF_STATUS_SUCCESS;
+ if (QDF_STATUS_SUCCESS != sme_enable_sta_ps_check(mac_ctx,
+ session_id)) {
+ sme_debug("Power save not allowed for vdev id %d", session_id);
+ qdf_mc_timer_stop(&ps_parm->auto_ps_enable_timer);
+ return QDF_STATUS_SUCCESS;
+ }
+
sme_debug("flushing powersave enable for vdev %u", session_id);
wma = cds_get_context(QDF_MODULE_ID_WMA);