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
This commit is contained in:
Abhishek Singh 2016-08-08 17:55:47 +05:30 • committed by Gerrit - the friendly Code Review server
commit 779a55cfaa

View file

@ -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,