2
* Copyright (c) 2008-2009 Atheros Communications Inc.
4
* Modified for iPXE by Scott K Logan <logans@cottsay.net> July 2011
5
* Original from Linux kernel 3.0.1
7
* Permission to use, copy, modify, and/or distribute this software for any
8
* purpose with or without fee is hereby granted, provided that the above
9
* copyright notice and this permission notice appear in all copies.
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
FILE_LICENCE ( BSD2 );
34
#define SD_NO_CTL 0xE0
44
#define CTRY_DEBUG 0x1ff
45
#define CTRY_DEFAULT 0
47
#define COUNTRY_ERD_FLAG 0x8000
48
#define WORLDWIDE_ROAMING_FLAG 0x4000
50
#define MULTI_DOMAIN_MASK 0xFF00
52
#define WORLD_SKU_MASK 0x00F0
53
#define WORLD_SKU_PREFIX 0x0060
55
#define CHANNEL_HALF_BW 10
56
#define CHANNEL_QUARTER_BW 5
58
struct country_code_to_enum_rd {
80
CTRY_BOSNIA_HERZ = 70,
82
CTRY_BRUNEI_DARUSSALAM = 96,
89
CTRY_COSTA_RICA = 188,
94
CTRY_DOMINICAN_REPUBLIC = 214,
97
CTRY_EL_SALVADOR = 222,
99
CTRY_FAEROE_ISLANDS = 234,
105
CTRY_GREENLAND = 304,
108
CTRY_GUATEMALA = 320,
111
CTRY_HONG_KONG = 344,
115
CTRY_INDONESIA = 360,
124
CTRY_KAZAKHSTAN = 398,
126
CTRY_KOREA_NORTH = 408,
127
CTRY_KOREA_ROC = 410,
128
CTRY_KOREA_ROC2 = 411,
129
CTRY_KOREA_ROC3 = 412,
134
CTRY_LIECHTENSTEIN = 438,
135
CTRY_LITHUANIA = 440,
136
CTRY_LUXEMBOURG = 442,
138
CTRY_MACEDONIA = 807,
145
CTRY_NETHERLANDS = 528,
146
CTRY_NETHERLANDS_ANTILLES = 530,
147
CTRY_NEW_ZEALAND = 554,
148
CTRY_NICARAGUA = 558,
153
CTRY_PAPUA_NEW_GUINEA = 598,
156
CTRY_PHILIPPINES = 608,
159
CTRY_PUERTO_RICO = 630,
163
CTRY_SAUDI_ARABIA = 682,
164
CTRY_SERBIA_MONTENEGRO = 891,
165
CTRY_SINGAPORE = 702,
168
CTRY_SOUTH_AFRICA = 710,
170
CTRY_SRI_LANKA = 144,
172
CTRY_SWITZERLAND = 756,
176
CTRY_TRINIDAD_Y_TOBAGO = 780,
181
CTRY_UNITED_KINGDOM = 826,
182
CTRY_UNITED_STATES = 840,
183
CTRY_UNITED_STATES_FCC49 = 842,
185
CTRY_UZBEKISTAN = 860,
186
CTRY_VENEZUELA = 862,
249
CTRY_AUSTRALIA2 = 5000,
254
int ath_is_world_regd(struct ath_regulatory *reg);
255
int ath_is_49ghz_allowed(u16 redomain);
256
//int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy,
257
// int (*reg_notifier)(struct wiphy *wiphy,
258
// struct regulatory_request *request));
259
u32 ath_regd_get_band_ctl(struct ath_regulatory *reg,
261
//int ath_reg_notifier_apply(struct wiphy *wiphy,
262
// struct regulatory_request *request,
263
// struct ath_regulatory *reg);