diff options
author | sam <sam@FreeBSD.org> | 2009-05-25 16:35:31 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-05-25 16:35:31 +0000 |
commit | 1dcc1a56a6b94b2719df947054688a1478e503cb (patch) | |
tree | 7d726cceb9c603513d833957ae38840c253e3ba5 /sys/net80211/ieee80211_freebsd.c | |
parent | 4578aab13485e4b51134e1d41989caeb2058e2e2 (diff) | |
download | FreeBSD-src-1dcc1a56a6b94b2719df947054688a1478e503cb.zip FreeBSD-src-1dcc1a56a6b94b2719df947054688a1478e503cb.tar.gz |
do internal bpf tracking only for radiotap DLT's
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.c')
-rw-r--r-- | sys/net80211/ieee80211_freebsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_freebsd.c b/sys/net80211/ieee80211_freebsd.c index 3caf790..15170c7 100644 --- a/sys/net80211/ieee80211_freebsd.c +++ b/sys/net80211/ieee80211_freebsd.c @@ -730,10 +730,10 @@ ieee80211_load_module(const char *modname) static eventhandler_tag wlan_bpfevent; static void -bpf_track(void *arg, struct ifnet *ifp, int attach) +bpf_track(void *arg, struct ifnet *ifp, int dlt, int attach) { /* NB: identify vap's by if_start */ - if (ifp->if_start == ieee80211_start) { + if (dlt == DLT_IEEE802_11_RADIO && ifp->if_start == ieee80211_start) { struct ieee80211vap *vap = ifp->if_softc; /* * Track bpf radiotap listener state. We mark the vap |