Deleted Added
full compact
ieee80211_freebsd.c (153349) ieee80211_freebsd.c (159590)
1/*-
2 * Copyright (c) 2003-2005 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

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

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003-2005 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

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

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_freebsd.c 153349 2005-12-12 18:04:44Z sam $");
29__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_freebsd.c 159590 2006-06-13 21:36:23Z jhb $");
30
31/*
32 * IEEE 802.11 support (FreeBSD-specific code)
33 */
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/linker.h>

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

305 iev.iev_keyix = keyix;
306 rt_ieee80211msg(ifp, RTM_IEEE80211_MICHAEL, &iev, sizeof(iev));
307 }
308}
309
310void
311ieee80211_load_module(const char *modname)
312{
30
31/*
32 * IEEE 802.11 support (FreeBSD-specific code)
33 */
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/linker.h>

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

305 iev.iev_keyix = keyix;
306 rt_ieee80211msg(ifp, RTM_IEEE80211_MICHAEL, &iev, sizeof(iev));
307 }
308}
309
310void
311ieee80211_load_module(const char *modname)
312{
313#ifdef notyet
314 struct thread *td = curthread;
315
313
316 if (suser(td) == 0 && securelevel_gt(td->td_ucred, 0) == 0) {
317 mtx_lock(&Giant);
318 (void) linker_load_module(modname, NULL, NULL, NULL, NULL);
319 mtx_unlock(&Giant);
320 }
314#ifdef notyet
315 (void)kern_kldload(curthread, modname, NULL);
321#else
322 printf("%s: load the %s module by hand for now.\n", __func__, modname);
323#endif
324}
325
326/*
327 * Module glue.
328 *

--- 24 unchanged lines hidden ---
316#else
317 printf("%s: load the %s module by hand for now.\n", __func__, modname);
318#endif
319}
320
321/*
322 * Module glue.
323 *

--- 24 unchanged lines hidden ---