Browse Source

qcacld-3.0: Add change to support DRV during wow mode

Add changes to support DRV feature during wow mode.

Change-Id: I588dfc5fa1bc419a288f346664c4028ef2d2011b
CRs-Fixed: 2456148
Rajeev Kumar 6 years ago
parent
commit
3dbd480835
1 changed files with 7 additions and 0 deletions
  1. 7 0
      pmo/core/src/wlan_pmo_suspend_resume.c

+ 7 - 0
pmo/core/src/wlan_pmo_suspend_resume.c

@@ -745,6 +745,13 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc,
 		psoc_ctx->wow.wow_state = pmo_wow_state_unified_d0;
 		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;
+	} else {
+		pmo_info("non-drv wow is enabled");
+	}
+
 	status = pmo_tgt_psoc_send_wow_enable_req(psoc, &param);
 	status = pmo_tgt_psoc_send_wow_enable_req(psoc, &param);
 	if (status != QDF_STATUS_SUCCESS) {
 	if (status != QDF_STATUS_SUCCESS) {
 		pmo_err("Failed to enable wow in fw");
 		pmo_err("Failed to enable wow in fw");