Deleted Added
full compact
ieee80211_regdomain.c (187800) ieee80211_regdomain.c (187802)
1/*-
2 * Copyright (c) 2005-2008 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) 2005-2008 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_regdomain.c 187800 2009-01-27 23:19:36Z sam $");
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_regdomain.c 187802 2009-01-27 23:43:20Z sam $");
28
29/*
30 * IEEE 802.11 regdomain support.
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>

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

66ieee80211_regdomain_attach(struct ieee80211com *ic)
67{
68 if (ic->ic_regdomain.regdomain == 0 &&
69 ic->ic_regdomain.country == CTRY_DEFAULT) {
70 ic->ic_regdomain.country = CTRY_UNITED_STATES; /* XXX */
71 ic->ic_regdomain.location = ' '; /* both */
72 ic->ic_regdomain.isocc[0] = 'U'; /* XXX */
73 ic->ic_regdomain.isocc[1] = 'S'; /* XXX */
28
29/*
30 * IEEE 802.11 regdomain support.
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>

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

66ieee80211_regdomain_attach(struct ieee80211com *ic)
67{
68 if (ic->ic_regdomain.regdomain == 0 &&
69 ic->ic_regdomain.country == CTRY_DEFAULT) {
70 ic->ic_regdomain.country = CTRY_UNITED_STATES; /* XXX */
71 ic->ic_regdomain.location = ' '; /* both */
72 ic->ic_regdomain.isocc[0] = 'U'; /* XXX */
73 ic->ic_regdomain.isocc[1] = 'S'; /* XXX */
74 /* XXX? too late to setup default channel list */
74 /* NB: driver calls ieee80211_init_channels or similar */
75 }
76 ic->ic_getradiocaps = null_getradiocaps;
77 ic->ic_setregdomain = null_setregdomain;
78}
79
80void
81ieee80211_regdomain_detach(struct ieee80211com *ic)
82{

--- 355 unchanged lines hidden ---
75 }
76 ic->ic_getradiocaps = null_getradiocaps;
77 ic->ic_setregdomain = null_setregdomain;
78}
79
80void
81ieee80211_regdomain_detach(struct ieee80211com *ic)
82{

--- 355 unchanged lines hidden ---