do internal bpf tracking only for radiotap DLT's

This commit is contained in:
Sam Leffler 2009-05-25 16:35:31 +00:00
parent 5ce8d9708c
commit ac86de8587
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192764

View File

@ -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