[PATCH ath-next v1] wifi: ath12k: convert to use secs_to_jiffies

From: Yuesong Li
Date: Thu Jun 12 2025 - 07:11:40 EST


Since secs_to_jiffies()(commit:b35108a51cf7) has been introduced, we can
use it to avoid scaling the time to msec.

Signed-off-by: Yuesong Li <liyuesong@xxxxxxxx>
---
drivers/net/wireless/ath/ath12k/mac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index 88b59f3ff87a..1ba2701393b2 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -4373,7 +4373,7 @@ int ath12k_mac_get_fw_stats(struct ath12k *ar,
* received 'update stats' event, we keep a 3 seconds timeout in case,
* fw_stats_done is not marked yet
*/
- timeout = jiffies + msecs_to_jiffies(3 * 1000);
+ timeout = jiffies + secs_to_jiffies(3);
ath12k_fw_stats_reset(ar);

reinit_completion(&ar->fw_stats_complete);
--
2.34.1