Signed-off-by: Michal Kazior <michal.kaz...@tieto.com>
---
 drivers/net/wireless/ath/ath10k/mac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath10k/mac.c 
b/drivers/net/wireless/ath/ath10k/mac.c
index bf7954b..99cb5ad 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -1516,7 +1516,7 @@ static int ath10k_start_scan(struct ath10k *ar,
         * false. Add a 200ms margin to account event/command
         * processing. */
        mod_timer(&ar->scan.timeout, jiffies +
-                 ((arg->max_scan_time+200)*HZ)/1000);
+                 msecs_to_jiffies(arg->max_scan_time+200));
        return 0;
 }
 
-- 
1.7.9.5

_______________________________________________
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to