diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2006-08-14 23:13:29 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2006-08-14 23:13:29 +0000 |
commit | 6ce43c12fdb1b8f22fba254ac6ef1f1be4b8bd5f (patch) | |
tree | 81e9db2f2eac1a5803a01f20edf16fa4ee253f1a /sys | |
parent | 3a24fccadab9471f9a595227bb40f4131a982c32 (diff) |
Fix bogus scanning mode.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/acx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c index cb30edd0330..b3b13407f65 100644 --- a/sys/dev/ic/acx.c +++ b/sys/dev/ic/acx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acx.c,v 1.40 2006/08/14 06:53:26 jsg Exp $ */ +/* $OpenBSD: acx.c,v 1.41 2006/08/14 23:13:28 mglocker Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -1822,8 +1822,9 @@ acx_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) int error = 0; switch (nstate) { - case IEEE80211_S_SCAN: - if (ic->ic_state != IEEE80211_S_INIT) { + case IEEE80211_S_INIT: + break; + case IEEE80211_S_SCAN: { uint8_t chan; chan = ieee80211_chan2ieee(ic, ic->ic_bss->ni_chan); |