Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2009 16:35:31 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192764 - head/sys/net80211
Message-ID:  <200905251635.n4PGZVhE029140@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Mon May 25 16:35:31 2009
New Revision: 192764
URL: http://svn.freebsd.org/changeset/base/192764

Log:
  do internal bpf tracking only for radiotap DLT's

Modified:
  head/sys/net80211/ieee80211_freebsd.c

Modified: head/sys/net80211/ieee80211_freebsd.c
==============================================================================
--- head/sys/net80211/ieee80211_freebsd.c	Mon May 25 16:34:35 2009	(r192763)
+++ head/sys/net80211/ieee80211_freebsd.c	Mon May 25 16:35:31 2009	(r192764)
@@ -730,10 +730,10 @@ ieee80211_load_module(const char *modnam
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905251635.n4PGZVhE029140>