12345678910111213141516171819202122232425262728293031 |
- From df2d8388bc96c0f29d27d121f2a4cd054f8b3900 Mon Sep 17 00:00:00 2001
- From: Arend Van Spriel <[email protected]>
- Date: Wed, 8 Nov 2017 14:36:34 +0100
- Subject: [PATCH] brcmfmac: use msecs_to_jiffies() instead of calculation using
- HZ
- Minor cleanup using provided macro to convert milliseconds interval
- to jiffies in brcmf_cfg80211_escan().
- Reviewed-by: Hante Meuleman <[email protected]>
- Reviewed-by: Pieter-Paul Giesberts <[email protected]>
- Reviewed-by: Franky Lin <[email protected]>
- Signed-off-by: Arend van Spriel <[email protected]>
- Signed-off-by: Kalle Valo <[email protected]>
- ---
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
- --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
- +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
- @@ -1115,8 +1115,8 @@ brcmf_cfg80211_escan(struct wiphy *wiphy
- goto scan_out;
-
- /* Arm scan timeout timer */
- - mod_timer(&cfg->escan_timeout, jiffies +
- - BRCMF_ESCAN_TIMER_INTERVAL_MS * HZ / 1000);
- + mod_timer(&cfg->escan_timeout,
- + jiffies + msecs_to_jiffies(BRCMF_ESCAN_TIMER_INTERVAL_MS));
-
- return 0;
-
|