Deleted Added
full compact
ieee80211_freebsd.c (254082) ieee80211_freebsd.c (256294)
1/*-
2 * Copyright (c) 2003-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_freebsd.c 254082 2013-08-08 05:09:35Z adrian $");
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_freebsd.c 256294 2013-10-10 19:56:31Z adrian $");
28
29/*
30 * IEEE 802.11 support (FreeBSD-specific code)
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/kernel.h>

--- 767 unchanged lines hidden (view full) ---

803}
804
805static eventhandler_tag wlan_bpfevent;
806static eventhandler_tag wlan_ifllevent;
807
808static void
809bpf_track(void *arg, struct ifnet *ifp, int dlt, int attach)
810{
28
29/*
30 * IEEE 802.11 support (FreeBSD-specific code)
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/kernel.h>

--- 767 unchanged lines hidden (view full) ---

803}
804
805static eventhandler_tag wlan_bpfevent;
806static eventhandler_tag wlan_ifllevent;
807
808static void
809bpf_track(void *arg, struct ifnet *ifp, int dlt, int attach)
810{
811 /* NB: identify vap's by if_start */
811 /* NB: identify vap's by if_init */
812 if (dlt == DLT_IEEE802_11_RADIO &&
812 if (dlt == DLT_IEEE802_11_RADIO &&
813 ifp->if_transmit == ieee80211_vap_transmit) {
813 ifp->if_init == ieee80211_init) {
814 struct ieee80211vap *vap = ifp->if_softc;
815 /*
816 * Track bpf radiotap listener state. We mark the vap
817 * to indicate if any listener is present and the com
818 * to indicate if any listener exists on any associated
819 * vap. This flag is used by drivers to prepare radiotap
820 * state only when needed.
821 */

--- 99 unchanged lines hidden ---
814 struct ieee80211vap *vap = ifp->if_softc;
815 /*
816 * Track bpf radiotap listener state. We mark the vap
817 * to indicate if any listener is present and the com
818 * to indicate if any listener exists on any associated
819 * vap. This flag is used by drivers to prepare radiotap
820 * state only when needed.
821 */

--- 99 unchanged lines hidden ---