summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-03-29 07:43:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-03-29 07:43:53 +0000
commit8673b11d01f804ff5d1c8397d6a911754b8b9c55 (patch)
treee021854694e285410e75cf3b1a4dd55573b8e830
parentf10ffeb02c41ed70e81c82f7901b5053005d1c80 (diff)
Fix building on the RAMDISK media. This was exposed by SMALL_KERNEL.
ok deraadt@
-rw-r--r--sys/dev/usb/if_urtwn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c
index f1a4a9ab14e..07ac8e557f2 100644
--- a/sys/dev/usb/if_urtwn.c
+++ b/sys/dev/usb/if_urtwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_urtwn.c,v 1.23 2012/09/17 15:14:14 yasuoka Exp $ */
+/* $OpenBSD: if_urtwn.c,v 1.24 2013/03/29 07:43:52 brad Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -2790,7 +2790,6 @@ urtwn_set_chan(struct urtwn_softc *sc, struct ieee80211_channel *c,
struct ieee80211_channel *extc)
{
struct ieee80211com *ic = &sc->sc_ic;
- uint32_t reg;
u_int chan;
int i;
@@ -2805,6 +2804,8 @@ urtwn_set_chan(struct urtwn_softc *sc, struct ieee80211_channel *c,
}
#ifndef IEEE80211_NO_HT
if (extc != NULL) {
+ uint32_t reg;
+
/* Is secondary channel below or above primary? */
int prichlo = c->ic_freq < extc->ic_freq;