summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-11-08 22:41:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-11-08 22:41:56 +0000
commit6fdaa92462f122116202033ff843031d60e867de (patch)
treee03b4b988d8c172cbbad6e416d9c4776e4af43bf /sys
parent917544a6ce6f90963e47574f49f76f121b60a113 (diff)
let it actually compile
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_atu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c
index ab8ff8823f3..10d0af0e0aa 100644
--- a/sys/dev/usb/if_atu.c
+++ b/sys/dev/usb/if_atu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atu.c,v 1.1 2004/11/08 22:09:11 dlg Exp $ */
+/* $OpenBSD: if_atu.c,v 1.2 2004/11/08 22:41:55 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004
* Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved.
@@ -2284,6 +2284,7 @@ atu_handle_mgmt_packet(struct atu_softc *sc, struct atu_rxpkt *pkt)
DPRINTF((" mac=%s signal=%d\n",
ether_sprintf(pkt->WiHeader.addr2), pkt->AtHeader.rssi));
+#ifdef ATU_DEBUG
if (atudebug & FLAG_SIGNAL) {
/*
* calculate average signal strength, can be very
@@ -2307,6 +2308,7 @@ atu_handle_mgmt_packet(struct atu_softc *sc, struct atu_rxpkt *pkt)
(sc->atu_signaltotal * 100 / ATU_AVG_TIME) %
100));
}
+#endif
DPRINTF(("%s: mgmt capabilities=%04x "
"(mode=%s, wep=%s, short-preamble=%s)\n", USBDEVNAME(sc->atu_dev),
@@ -2318,9 +2320,10 @@ atu_handle_mgmt_packet(struct atu_softc *sc, struct atu_rxpkt *pkt)
(beacon->flags & IEEE80211_CAPINFO_SHORT_PREAMBLE) ?
"yes" : "no"));
+#ifdef ATU_DEBUG
if (atudebug & FLAG_BEACONSFULL)
atu_print_beacon(sc, pkt);
-
+#endif
if (!(sc->atu_mgmt_flags & ATU_SEARCHING))
break;