Commit 80778d5a authored by Xianqing Jiang's avatar Xianqing Jiang Committed by Madan Mohan Koyyalamudi
Browse files

qcacld-2.0: Allow power save to be controlled by iw command

If gEnablePowerSaveOffload is 1 in ini, power save can't be
controlled by iw dev <devname> set power_save on/off.

To fix this enable/disable pMac->pmcOffloadInfo.staPsEnabled
when iw command is received to enable/disable the power save.

Change-Id: Iddeea7029817b5e9f4da344286fed6ed3285917c
CRs-Fixed: 1004582
parent dd660477
......@@ -3267,11 +3267,16 @@ VOS_STATUS wlan_hdd_set_powersave(hdd_adapter_t *pAdapter, int mode)
*/
sme_PsOffloadDisablePowerSave(WLAN_HDD_GET_HAL_CTX(pAdapter),
pAdapter->sessionId);
if (pHddCtx->cfg_ini->fIsBmpsEnabled)
sme_ConfigDisablePowerSave(pHddCtx->hHal,
ePMC_BEACON_MODE_POWER_SAVE);
}
else if (DRIVER_POWER_MODE_AUTO == mode)
{
if (pHddCtx->cfg_ini->fIsBmpsEnabled)
{
sme_ConfigEnablePowerSave(pHddCtx->hHal,
ePMC_BEACON_MODE_POWER_SAVE);
hddLog(VOS_TRACE_LEVEL_INFO_HIGH, "%s:Wlan driver Entering Bmps ",
__func__);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment