diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2009-07-28 11:39:53 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2009-07-28 11:39:53 +0000 |
commit | 0aa00711c3898f965b1e1c32b6165ba92baff525 (patch) | |
tree | 8ae3f2bbf6b4a180929aa42d28a336acae2cf0fc /sys/dev | |
parent | d0083d5d08ee69d17122efc81aa1e424566b7dec (diff) |
timeout_add -> timout_add_msec
ok jsg@ claudio@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/acx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c index a26d77f1567..693923cbfa3 100644 --- a/sys/dev/ic/acx.c +++ b/sys/dev/ic/acx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acx.c,v 1.93 2009/03/31 22:06:04 claudio Exp $ */ +/* $OpenBSD: acx.c,v 1.94 2009/07/28 11:39:52 blambert Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -203,7 +203,6 @@ void acx_iter_func(void *, struct ieee80211_node *); void acx_amrr_timeout(void *); void acx_newassoc(struct ieee80211com *, struct ieee80211_node *, int); -static int acx_chanscan_rate = 5; /* 5 channels per second */ int acx_beacon_intvl = 100; /* 100 TU */ /* @@ -1749,8 +1748,8 @@ acx_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) goto back; } - timeout_add(&sc->sc_chanscan_timer, - hz / acx_chanscan_rate); + /* 200ms => 5 channels per second */ + timeout_add_msec(&sc->sc_chanscan_timer, 200); } break; case IEEE80211_S_AUTH: @@ -1835,7 +1834,7 @@ acx_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) /* start automatic rate control timer */ if (ic->ic_fixed_rate == -1) - timeout_add(&sc->amrr_ch, hz / 2); + timeout_add_msec(&sc->amrr_ch, 500); break; default: break; @@ -2746,7 +2745,7 @@ acx_amrr_timeout(void *arg) else ieee80211_iterate_nodes(ic, acx_iter_func, sc); - timeout_add(&sc->amrr_ch, hz / 2); + timeout_add_msec(&sc->amrr_ch, 500); } void |