From 53e375eb53d6c53b3c0fea277b9413e121d72133 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Tue, 26 Jun 2018 06:16:09 +0000 Subject: [PATCH] bpf_mtap*() before ieee80211_encap() should be bpf_mtap() rather than bpf_mtap3(). bpf_mtap3() is for raw bpf and be used after ieee80211_encap(). --- sys/dev/ic/rt2661.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c index 67de4d2a8058..175f2f2fb4aa 100644 --- a/sys/dev/ic/rt2661.c +++ b/sys/dev/ic/rt2661.c @@ -1,4 +1,4 @@ -/* $NetBSD: rt2661.c,v 1.37 2018/05/01 16:18:13 maya Exp $ */ +/* $NetBSD: rt2661.c,v 1.38 2018/06/26 06:16:09 msaitoh Exp $ */ /* $OpenBSD: rt2661.c,v 1.17 2006/05/01 08:41:11 damien Exp $ */ /* $FreeBSD: rt2560.c,v 1.5 2006/06/02 19:59:31 csjp Exp $ */ @@ -25,7 +25,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rt2661.c,v 1.37 2018/05/01 16:18:13 maya Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rt2661.c,v 1.38 2018/06/26 06:16:09 msaitoh Exp $"); #include @@ -1878,7 +1878,7 @@ rt2661_start(struct ifnet *ifp) continue; } - bpf_mtap3(ifp->if_bpf, m0); + bpf_mtap(ifp, m0); m0 = ieee80211_encap(ic, m0, ni); if (m0 == NULL) { ieee80211_free_node(ni);