From 40a9d8da1ff7dddee23200c295f15e0e34ed6b40 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Fri, 5 Feb 2016 17:52:46 -0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_power.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index ceba3887ebf4..66ebc57a9749 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -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,