Эх сурвалжийг харах

qcacld-3.0: log imps state during imps WMI cmd send

Currently there is no way to know the last imps state sent from host
to FW in case of WMI history overwritten, hence log the imps state
during WMI_PDEV_PARAM_IDLE_PS_CONFIG command send from
wma_enable_disable_imps().

Change-Id: I0e6605ce35d24a26b4056acc9864dbeefe0b53a9
CRs-Fixed: 3730533
Venkateswara Naralasetty 1 жил өмнө
parent
commit
eb80f86a02

+ 3 - 1
core/wma/src/wma_power.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -1724,6 +1724,8 @@ QDF_STATUS wma_enable_disable_imps(uint32_t pdev_id, uint32_t param_val)
 		wma_err("Unable to enable/disable:(%d) IMPS",
 			param_val);
 
+	wma->in_imps = !!param_val;
+
 	return status;
 }
 #endif /* FEATURE_TX_POWER */