From 8ffd344cadb2e79c6ffde0e6234c0ade27dc67e4 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Wed, 25 May 2016 17:15:33 -0700 Subject: qcacld-2.0: Remove the PS check in suspend req FW can enter into suspend mode even if the BMPS is not enabled. Hence power save check is not required in suspend request. Change-Id: Ic2b774cea10516ea0b23141922ba1e16aa33f395 CRs-Fixed: 974918 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index f939dfb10156..ce06cc046ea9 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -23757,18 +23757,6 @@ int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy, return -EAGAIN; } - if (pHddCtx->cfg_ini->enablePowersaveOffload && - pHddCtx->cfg_ini->fIsBmpsEnabled && - ((WLAN_HDD_INFRA_STATION == pAdapter->device_mode) || - (WLAN_HDD_P2P_CLIENT == pAdapter->device_mode))) { - if (!sme_PsOffloadIsStaInPowerSave(pHddCtx->hHal, - pAdapter->sessionId)) { - hddLog(VOS_TRACE_LEVEL_DEBUG, - FL("STA is not in power save, Do not allow suspend")); - return -EAGAIN; - } - } - if (pScanInfo->mScanPending && pAdapter->request) { INIT_COMPLETION(pScanInfo->abortscan_event_var); -- cgit v1.2.3