Deleted Added
full compact
ieee80211.c (173861) ieee80211.c (174388)
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

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

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211.c 173861 2007-11-23 05:57:20Z sam $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211.c 174388 2007-12-07 01:46:13Z kmacy $");
29
30/*
31 * IEEE 802.11 generic handler
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>

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

270
271 /*
272 * Install a default reset method for the ioctl support.
273 * The driver is expected to fill this in before calling us.
274 */
275 if (ic->ic_reset == NULL)
276 ic->ic_reset = ieee80211_default_reset;
277
29
30/*
31 * IEEE 802.11 generic handler
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>

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

270
271 /*
272 * Install a default reset method for the ioctl support.
273 * The driver is expected to fill this in before calling us.
274 */
275 if (ic->ic_reset == NULL)
276 ic->ic_reset = ieee80211_default_reset;
277
278 KASSERT(ifp->if_spare2 == NULL, ("oops, hosed"));
279 ifp->if_spare2 = ic; /* XXX temp backpointer */
278 KASSERT(ifp->if_llsoftc == NULL, ("oops, hosed"));
279 ifp->if_llsoftc = ic;
280}
281
282void
283ieee80211_ifdetach(struct ieee80211com *ic)
284{
285 struct ifnet *ifp = ic->ic_ifp;
286
287 ieee80211_remove_vap(ic);

--- 939 unchanged lines hidden ---
280}
281
282void
283ieee80211_ifdetach(struct ieee80211com *ic)
284{
285 struct ifnet *ifp = ic->ic_ifp;
286
287 ieee80211_remove_vap(ic);

--- 939 unchanged lines hidden ---