summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ath.c
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2008-10-15 19:12:21 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2008-10-15 19:12:21 +0000
commit447ea046b5b4aba425b2879f683099c1cfa3713f (patch)
tree8bca5f4e5c63f94a107ad0f4fb69f34c526fe488 /sys/dev/ic/ath.c
parentb302a033156f300c77b20b1eb011b4ceaccff009 (diff)
Second pass of simple timeout_add -> timeout_add_sec conversions
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r--sys/dev/ic/ath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index 625b96225fd..25875cdc619 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.78 2008/09/01 09:02:59 reyk Exp $ */
+/* $OpenBSD: ath.c,v 1.79 2008/10/15 19:12:19 blambert Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -2894,7 +2894,7 @@ ath_calibrate(void *arg)
__func__, c->ic_freq));
sc->sc_stats.ast_per_calfail++;
}
- timeout_add(&sc->sc_cal_to, hz * ath_calinterval);
+ timeout_add_sec(&sc->sc_cal_to, ath_calinterval);
splx(s);
}
@@ -3024,7 +3024,7 @@ ath_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg)
if (nstate == IEEE80211_S_RUN) {
/* start periodic recalibration timer */
- timeout_add(&sc->sc_cal_to, hz * ath_calinterval);
+ timeout_add_sec(&sc->sc_cal_to, ath_calinterval);
if (ic->ic_opmode != IEEE80211_M_MONITOR)
timeout_add(&sc->sc_rssadapt_to, hz / 10);