summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authormvs <mvs@cvs.openbsd.org>2020-08-28 12:01:49 +0000
committermvs <mvs@cvs.openbsd.org>2020-08-28 12:01:49 +0000
commit74c2c4f31ae41fd11a797fb558f9fcb9bfb5e1e9 (patch)
tree7351c413f365ae614b43d2d0ccb53e0714dc5d0d /sys/net80211
parent842d73abd18d7ec574fe43b12f07cacce2b129ab (diff)
Add missing #if's to fix build without bpf(4).
ok deraadt@
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c
index f65a1892194..300b8880290 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_input.c,v 1.220 2020/07/21 08:38:59 stsp Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.221 2020/08/28 12:01:48 mvs Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
@@ -522,8 +522,10 @@ ieee80211_inputm(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni,
/* Do not process "no data" frames any further. */
if (subtype & IEEE80211_FC0_SUBTYPE_NODATA) {
+#if NBPFILTER > 0
if (ic->ic_rawbpf)
bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_IN);
+#endif
goto out;
}