2021-10-26 06:53:02

by Wen Gong

[permalink] [raw]
Subject: [PATCH] ath11k: fix the value of msecs_to_jiffies in ath11k_debugfs_fw_stats_request

parameter of msecs_to_jiffies should be (3 * 1000) instead of (3 * HZ)

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Wen Gong <[email protected]>
---
drivers/net/wireless/ath/ath11k/debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath11k/debugfs.c b/drivers/net/wireless/ath/ath11k/debugfs.c
index b022365464c2..07409eb44f0f 100644
--- a/drivers/net/wireless/ath/ath11k/debugfs.c
+++ b/drivers/net/wireless/ath/ath11k/debugfs.c
@@ -200,7 +200,7 @@ static int ath11k_debugfs_fw_stats_request(struct ath11k *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 * HZ);
+ timeout = jiffies + msecs_to_jiffies(3 * 1000);

ath11k_debugfs_fw_stats_reset(ar);

--
2.31.1


2021-11-15 09:24:49

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH] ath11k: fix the value of msecs_to_jiffies in ath11k_debugfs_fw_stats_request

Wen Gong <[email protected]> wrote:

> parameter of msecs_to_jiffies should be (3 * 1000) instead of (3 * HZ)
>
> Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
>
> Signed-off-by: Wen Gong <[email protected]>
> Signed-off-by: Kalle Valo <[email protected]>

Patch applied to ath-next branch of ath.git, thanks.

c8f2d41bbff6 ath11k: fix the value of msecs_to_jiffies in ath11k_debugfs_fw_stats_request

--
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches