qcacld-3.0: Remove the PS timer check in suspend req

FW can enter into suspend mode even if the BMPS is not enabled.
Hence the auto PS timer check is not required in suspend request.

Change-Id: Ic2b774cea10516ea0b23141922ba1e16aa33f395
CRs-Fixed: 974918
This commit is contained in:
Kiran Kumar Lokere 2016-02-05 17:52:46 -08:00 • committed by Vishwajith Upendra
commit 40a9d8da1f

View file

@ -1923,21 +1923,6 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy,
return -EAGAIN;
}
if (pHddCtx->config->is_ps_enabled) {
if (sme_is_auto_ps_timer_running(pHddCtx->hHal,
pAdapter->sessionId)) {
hddLog(LOGE,
FL("Auto Power save timer is running; Do not allow suspend"));
return -EAGAIN;
} else {
sme_ps_enable_disable(pHddCtx->hHal,
pAdapter->sessionId,
SME_PS_ENABLE);
hddLog(LOG1,
FL("Auto PS timer is not running; allow suspend and enter into power save"));
}
}
if (pScanInfo->mScanPending) {
INIT_COMPLETION(pScanInfo->abortscan_event_var);
hdd_abort_mac_scan(pHddCtx, pAdapter->sessionId,