diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2016-10-18 11:22:40 -0700 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-10-19 10:45:24 -0700 |
| commit | 0855e869a2c9dd5c212ad5a1ff16a1ca23a24d1f (patch) | |
| tree | f41e321e4910f99699c2d273f27645618b2cceda | |
| parent | c97f53922ed7c14e2c91607be28b51374babc7f8 (diff) | |
qcacld-3.0: Remove hardcoded value and set qpower appropriately
This is a qcacld-2.0 to qcacld-3.0 propagation.
The issue is when host re-enables QPower after resume, it is setting
WMI_STA_PS_ENABLE_QPOWER to 1 (which is for QPower = 2) always and never
WMI_STA_PS_ENABLE_QPOWER to 2 (which is for QPower = 5).
This means one suspend/resume is enough to disable QPower = 5 and
change to QPower = 2.
Fix this by removing the hardcoded value of 1 and use qpower_config instead.
Change-Id: I553c1691d5d7e98c2db8c9e56e2ba68ae27af506
CRs-Fixed: 1040737
| -rw-r--r-- | core/wma/src/wma_power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/wma/src/wma_power.c b/core/wma/src/wma_power.c index e939c5267597..e5194ae626a7 100644 --- a/core/wma/src/wma_power.c +++ b/core/wma/src/wma_power.c @@ -1896,7 +1896,7 @@ static void wma_set_vdev_resume_dtim(tp_wma_handle wma, uint8_t vdev_id) ret = wma_unified_set_sta_ps_param(wma->wmi_handle, vdev_id, WMI_STA_PS_ENABLE_QPOWER, - 1); + qpower_config); if (QDF_IS_STATUS_ERROR(ret)) WMA_LOGE("Failed to enable Qpower in resume mode!"); } |
