diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-03-10 00:59:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-03-10 00:59:55 +0000 |
commit | b0e12406e7e5b8ce98641a48c0fc9d33c65df9d5 (patch) | |
tree | 5e040c31a07fe5127031ce69c9bbd859c675c88a /sys/dev/ic | |
parent | 3d7a30f1a7a0388c4500aedcb0123d25b90ba0ae (diff) |
Fix AP scan on prism and add a /* FALLTHROUGH */ comment to make
things obvious.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/if_wi.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index 87cd9542e1e..c2a367a31bc 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.93 2003/02/13 20:45:09 millert Exp $ */ +/* $OpenBSD: if_wi.c,v 1.94 2003/03/10 00:59:54 millert Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.93 2003/02/13 20:45:09 millert Exp $"; + "$OpenBSD: if_wi.c,v 1.94 2003/03/10 00:59:54 millert Exp $"; #endif /* lint */ #ifdef foo @@ -1619,6 +1619,11 @@ wi_ioctl(ifp, command, data) wreq.wi_val[0] = htole16(sc->sc_firmware_type == WI_LUCENT ? 0 : 1); break; + case WI_FRID_CRYPTO_ALG: + wreq.wi_val[0] = + htole16((u_int16_t)sc->wi_crypto_algorithm); + wreq.wi_len = 1; + break; case WI_RID_SCAN_RES: if (sc->sc_firmware_type == WI_LUCENT) { memcpy((char *)wreq.wi_val, @@ -1627,11 +1632,7 @@ wi_ioctl(ifp, command, data) wreq.wi_len = sc->wi_scanbuf_len; break; } - case WI_FRID_CRYPTO_ALG: - wreq.wi_val[0] = - htole16((u_int16_t)sc->wi_crypto_algorithm); - wreq.wi_len = 1; - break; + /* FALLTHROUGH */ default: if (wi_read_record(sc, (struct wi_ltv_gen *)&wreq)) { error = EINVAL; |