diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-01-21 21:54:01 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-01-21 21:54:01 +0000 |
commit | ebcf515942389f0e738f6323c8b553ceabee63f1 (patch) | |
tree | 02576077cba384aac928f4d78d19526d93f75d7b /sys/dev/ic/bwi.c | |
parent | 170b1962e3648be5d4b991579d61efbc60a24fd2 (diff) |
Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).
No functional changes.
ok krw@ miod@
Diffstat (limited to 'sys/dev/ic/bwi.c')
-rw-r--r-- | sys/dev/ic/bwi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index e0513a889cc..7dd98f81b78 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwi.c,v 1.84 2009/01/07 01:07:03 jsg Exp $ */ +/* $OpenBSD: bwi.c,v 1.85 2009/01/21 21:53:59 grange Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -7452,7 +7452,7 @@ back: error = sc->sc_newstate(ic, nstate, arg); if (nstate == IEEE80211_S_SCAN) { - timeout_add(&sc->sc_scan_ch, (sc->sc_dwell_time * hz) / 1000); + timeout_add_msec(&sc->sc_scan_ch, sc->sc_dwell_time); } else if (nstate == IEEE80211_S_RUN) { /* XXX 15 seconds */ timeout_add_sec(&sc->sc_calib_ch, 1); |