소스 검색

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
Kiran Kumar Lokere 9 년 전
부모
커밋
40a9d8da1f
1개의 변경된 파일0개의 추가작업 그리고 15개의 파일을 삭제
  1. 0 15
      core/hdd/src/wlan_hdd_power.c

+ 0 - 15
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,