qcacld-3.0: Set the IMPS enable/disable based on INI

Send IMPS disable cmd to FW if IMPS is disabled in INI.

Change-Id: Ib5e663d1966ab059b69aa0b7a3bc92a99dd6368a
CRs-Fixed: 962402
This commit is contained in:
Kiran Kumar Lokere 2016-01-11 19:31:38 -08:00 • committed by Akash Patel
commit fc2803db92
2 changed files with 8 additions and 11 deletions

View file

@ -5507,20 +5507,14 @@ eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode(eHddDot11Mode dot11Mode)
*/
CDF_STATUS hdd_set_idle_ps_config(hdd_context_t *pHddCtx, uint32_t val)
{
struct hdd_config *pConfig = pHddCtx->config;
CDF_STATUS status = CDF_STATUS_SUCCESS;
hddLog(LOG1, "hdd_set_idle_ps_config: Enter Val %d", val);
if (pConfig->fIsImpsEnabled) {
status = sme_set_idle_powersave_config(pHddCtx->pcds_context,
pHddCtx->hHal, val);
if (CDF_STATUS_SUCCESS != status) {
hddLog(LOGE, "Fail to Set Idle PS Config val %d", val);
}
} else {
hddLog(LOG1, "hdd_set_idle_ps_config: IMPS not enabled in ini");
}
status = sme_set_idle_powersave_config(pHddCtx->pcds_context,
pHddCtx->hHal, val);
if (CDF_STATUS_SUCCESS != status)
hddLog(LOGE, "Fail to Set Idle PS Config val %d", val);
return status;
}

View file

@ -5685,7 +5685,10 @@ int hdd_wlan_startup(struct device *dev, void *hif_sc)
hdd_hostapd_channel_wakelock_init(hdd_ctx);
hdd_set_idle_ps_config(hdd_ctx, true);
if (hdd_ctx->config->fIsImpsEnabled)
hdd_set_idle_ps_config(hdd_ctx, true);
else
hdd_set_idle_ps_config(hdd_ctx, false);
#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
if (hdd_ctx->config->WlanAutoShutdown != 0)
if (sme_set_auto_shutdown_cb