From 779a55cfaa56e725afa576bb315e2e0dfa7bd134 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Mon, 8 Aug 2016 17:55:47 +0530 Subject: [PATCH] qcacld-3.0: Print qpower enable/disable depending on the config value qcacld-2.0 to qcacld-3.0 propagation Driver prints qpower disabled even if command for qpower enabled is sent to firmware. To avoid confusion print qpower enable/disable depending on the cmd sent to firmware. Change-Id: Ifb135d4ad1691d0e5024aa2ef31880be271cac9e CRs-Fixed: 1044603 --- core/wma/src/wma_power.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/wma/src/wma_power.c b/core/wma/src/wma_power.c index 3f2fa5321276..d53ada13afe3 100644 --- a/core/wma/src/wma_power.c +++ b/core/wma/src/wma_power.c @@ -624,10 +624,14 @@ static QDF_STATUS wma_set_force_sleep(tp_wma_handle wma, WMI_STA_PS_ENABLE_QPOWER, qpower_config); if (QDF_IS_STATUS_ERROR(ret)) { - WMA_LOGE("Disable QPower Failed vdevId %d", vdev_id); + WMA_LOGE("%s(%d) QPower Failed vdevId %d", + qpower_config ? "Enable" : "Disable", + qpower_config, vdev_id); return ret; } - WMA_LOGD("QPower Disabled vdevId %d", vdev_id); + WMA_LOGD("QPower %s(%d) vdevId %d", + qpower_config ? "Enabled" : "Disabled", + qpower_config, vdev_id); /* Set the Wake Policy to WMI_STA_PS_RX_WAKE_POLICY_POLL_UAPSD */ ret = wma_unified_set_sta_ps_param(wma->wmi_handle, vdev_id,