summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@qti.qualcomm.com>2016-07-21 15:22:06 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-07-26 12:52:56 +0530
commitf05d7256c19f0d12e438af7da4ffcbadc8670b74 (patch)
tree67f603492d1e4749250270041634cbd2472738f4
parent52444c87e909af0dedbfe13a192fac8569703148 (diff)
qcacld-2.0: Print qpower enable/disable depending on the config value
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
-rw-r--r--CORE/SERVICES/WMA/wma.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index e4cd6e178808..78d2caa9ded9 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -19135,17 +19135,17 @@ static int32_t wma_set_force_sleep(tp_wma_handle wma, u_int32_t vdev_id,
psmode = WMI_STA_PS_MODE_ENABLED;
}
- /*
- * QPower is enabled by default in Firmware
- * So Disable QPower explicitly
- */
ret = wmi_unified_set_sta_ps_param(wma->wmi_handle, vdev_id,
WMI_STA_PS_ENABLE_QPOWER, qpower_config);
if (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 = wmi_unified_set_sta_ps_param(wma->wmi_handle, vdev_id,