summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ath.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-02-20 20:12:15 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-02-20 20:12:15 +0000
commit0499ee37ccb7982b2099e1e195b19995225ac27a (patch)
tree10f790819731e6b1a52fe384721b9afd16a307da /sys/dev/ic/ath.c
parent0c1b18fc6b2ebab61fbb19e27229ea52709f8a84 (diff)
Fix kernel builds without bpfilter. Linking is still broken.
"Please commit this diff ASAP" brad@
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r--sys/dev/ic/ath.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index 6e45823b46c..ca7b959ed7b 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.45 2006/01/04 06:04:41 canacar Exp $ */
+/* $OpenBSD: ath.c,v 1.46 2006/02/20 20:12:13 damien Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -2735,6 +2735,7 @@ ath_chan_set(struct ath_softc *sc, struct ieee80211_channel *chan)
return EIO;
}
+#if NBPFILTER > 0
/*
* Update BPF state.
*/
@@ -2742,6 +2743,7 @@ ath_chan_set(struct ath_softc *sc, struct ieee80211_channel *chan)
htole16(chan->ic_freq);
sc->sc_txtap.wt_chan_flags = sc->sc_rxtap.wr_chan_flags =
htole16(chan->ic_flags);
+#endif
/*
* Change channels and update the h/w rate map