Selaa lähdekoodia

qcacld-3.0: Enable DRV in unit test mode

Current code does not enable DRV in unit
test mode. Fix this by setting drv flag
when unit test mode is detected.

Change-Id: I0996860ca6549235aae59459a710f10279a181d5
CRs-Fixed: 3500370
Mohammed Ahmed 1 vuosi sitten
vanhempi
sitoutus
151a000241
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      components/pmo/core/src/wlan_pmo_suspend_resume.c

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

@@ -805,7 +805,10 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc,
 			htc_log_link_user_votes();
 		}
 	}
-
+	if (wow_params->is_unit_test) {
+		pmo_info("Unit test WoW, force DRV mode");
+		param.flags |= WMI_WOW_FLAG_ENABLE_DRV_PCIE_L1SS_SLEEP;
+	}
 	if (type == QDF_SYSTEM_SUSPEND) {
 		pmo_info("system suspend wow");
 		param.flags |= WMI_WOW_FLAG_SYSTEM_SUSPEND_WOW;