Przeglądaj źródła

qcacld-3.0: Avoid enabling power save in FTM

Currently, the wlan driver enables low power mode in firmware, even when
the driver is loaded in Factory Test Mode (FTM). Going into low power
mode while in FTM can cause firmware to misbehave, and doesn't make much
sense anyway. Avoid power save when the driver is in FTM.

Change-Id: Id979f70db09fe42b9a1b9951542283e8f565cd85
CRs-Fixed: 2408289
Dustin Brown 6 lat temu
rodzic
commit
e3eca74d76
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      core/hdd/src/wlan_hdd_cfg.c

+ 5 - 0
core/hdd/src/wlan_hdd_cfg.c

@@ -1141,6 +1141,11 @@ QDF_STATUS hdd_set_idle_ps_config(struct hdd_context *hdd_ctx, bool val)
 
 	hdd_debug("Enter Val %d", val);
 
+	if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE) {
+		hdd_debug("Skipping powersave in FTM");
+		return QDF_STATUS_SUCCESS;
+	}
+
 	if (hdd_ctx->imps_enabled == val) {
 		hdd_info("Already in the requested power state:%d", val);
 		return QDF_STATUS_SUCCESS;