diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-03-11 20:22:58 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-03-11 20:22:58 +0000 |
commit | f8ffde09d8153ba755b27f8af224276f2784244b (patch) | |
tree | 2f28ee9254b7ffbcc8ccc6efc599226d64350b01 /sys/dev/ic | |
parent | 747189748c89d10c35d4dc12e40fb8f0040a6193 (diff) |
simplify led management code.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ral.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c index 28330256142..60efec7658f 100644 --- a/sys/dev/ic/ral.c +++ b/sys/dev/ic/ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ral.c,v 1.25 2005/03/11 20:19:11 damien Exp $ */ +/* $OpenBSD: ral.c,v 1.26 2005/03/11 20:22:57 damien Exp $ */ /*- * Copyright (c) 2005 @@ -874,9 +874,8 @@ ral_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) /* abort TSF synchronization */ RAL_WRITE(sc, RAL_CSR14, 0); - /* turn activity led off */ - if (sc->led_mode != RAL_LED_MODE_SINGLE) - ral_update_led(sc, 0, 0); + /* turn association led off */ + ral_update_led(sc, 0, 0); sc->sc_newstate(ic, nstate, arg); break; @@ -908,8 +907,8 @@ ral_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) ral_enable_tsf_sync(sc); } - if (sc->led_mode != RAL_LED_MODE_SINGLE) - ral_update_led(sc, 1, 0); + /* turn assocation led on */ + ral_update_led(sc, 1, 0); if (ic->ic_opmode != IEEE80211_M_MONITOR) timeout_add(&sc->rssadapt_ch, hz / 10); |