소스 검색

qcacld-3.0: Avoid DRV suspend as well if link cannot be suspended

There is no need to do DRV suspend if gPreventLinkDown ini flag is
set. PCIe link will be always up.

Change-Id: Ie6344514486634e1b6ae3b4a4e416853f8d46e5a
CRs-Fixed: 2492053
Yue Ma 6 년 전
부모
커밋
954840d5fe
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 8 4
      components/pmo/core/src/wlan_pmo_suspend_resume.c

+ 8 - 4
components/pmo/core/src/wlan_pmo_suspend_resume.c

@@ -761,11 +761,15 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc,
 		psoc_ctx->wow.wow_state = pmo_wow_state_unified_d0;
 	}
 
-	if (qdf_is_drv_connected()) {
-		pmo_info("drv wow is enabled");
-		param.flags |= WMI_WOW_FLAG_ENABLE_DRV_PCIE_L1SS_SLEEP;
+	if (htc_can_suspend_link(pmo_core_psoc_get_htc_handle(psoc))) {
+		if (qdf_is_drv_connected()) {
+			pmo_info("drv wow is enabled");
+			param.flags |= WMI_WOW_FLAG_ENABLE_DRV_PCIE_L1SS_SLEEP;
+		} else {
+			pmo_info("non-drv wow is enabled");
+		}
 	} else {
-		pmo_info("non-drv wow is enabled");
+		pmo_info("Prevent link down, non-drv wow is enabled");
 	}
 
 	status = pmo_tgt_psoc_send_wow_enable_req(psoc, &param);