Deleted Added
full compact
ieee80211_freebsd.c (186904) ieee80211_freebsd.c (190526)
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 186904 2009-01-08 17:12:47Z sam $");
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_freebsd.c 190526 2009-03-29 17:59:14Z sam $");
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>
36#include <sys/systm.h>
37#include <sys/linker.h>
38#include <sys/mbuf.h>
39#include <sys/module.h>
40#include <sys/proc.h>
41#include <sys/sysctl.h>
42
43#include <sys/socket.h>
44
45#include <net/if.h>
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>
36#include <sys/systm.h>
37#include <sys/linker.h>
38#include <sys/mbuf.h>
39#include <sys/module.h>
40#include <sys/proc.h>
41#include <sys/sysctl.h>
42
43#include <sys/socket.h>
44
45#include <net/if.h>
46#include <net/if_dl.h>
46#include <net/if_clone.h>
47#include <net/if_media.h>
48#include <net/if_types.h>
49#include <net/ethernet.h>
50#include <net/route.h>
51
52#include <net80211/ieee80211_var.h>
53

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

132#endif
133 ) {
134 if_printf(ifp, "TDMA not supported\n");
135 return EOPNOTSUPP;
136 }
137 vap = ic->ic_vap_create(ic, ifc->ifc_name, unit,
138 cp.icp_opmode, cp.icp_flags, cp.icp_bssid,
139 cp.icp_flags & IEEE80211_CLONE_MACADDR ?
47#include <net/if_clone.h>
48#include <net/if_media.h>
49#include <net/if_types.h>
50#include <net/ethernet.h>
51#include <net/route.h>
52
53#include <net80211/ieee80211_var.h>
54

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

133#endif
134 ) {
135 if_printf(ifp, "TDMA not supported\n");
136 return EOPNOTSUPP;
137 }
138 vap = ic->ic_vap_create(ic, ifc->ifc_name, unit,
139 cp.icp_opmode, cp.icp_flags, cp.icp_bssid,
140 cp.icp_flags & IEEE80211_CLONE_MACADDR ?
140 cp.icp_macaddr : ic->ic_myaddr);
141 cp.icp_macaddr : (const uint8_t *)IF_LLADDR(ifp));
141 return (vap == NULL ? EIO : 0);
142}
143
144static void
145wlan_clone_destroy(struct ifnet *ifp)
146{
147 struct ieee80211vap *vap = ifp->if_softc;
148 struct ieee80211com *ic = vap->iv_ic;

--- 588 unchanged lines hidden ---
142 return (vap == NULL ? EIO : 0);
143}
144
145static void
146wlan_clone_destroy(struct ifnet *ifp)
147{
148 struct ieee80211vap *vap = ifp->if_softc;
149 struct ieee80211com *ic = vap->iv_ic;

--- 588 unchanged lines hidden ---