diff options
author | 2006-08-14 23:13:28 +0000 | |
---|---|---|
committer | 2006-08-14 23:13:28 +0000 | |
commit | 01490a9f8f810b2557684dbc946f757ee380b2aa (patch) | |
tree | 8496c3ef7d043601ea3d6d1159f1f910188ab0a4 | |
parent | say which type of header is unknown (diff) | |
download | wireguard-openbsd-01490a9f8f810b2557684dbc946f757ee380b2aa.tar.xz wireguard-openbsd-01490a9f8f810b2557684dbc946f757ee380b2aa.zip |
Fix bogus scanning mode.
-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); |