iPXE
Data Structures | Macros | Enumerations | Functions
regd.h File Reference
#include "ath.h"

Go to the source code of this file.

Data Structures

struct  country_code_to_enum_rd
 

Macros

#define NO_CTL   0xff
 
#define SD_NO_CTL   0xE0
 
#define NO_CTL   0xff
 
#define CTL_11A   0
 
#define CTL_11B   1
 
#define CTL_11G   2
 
#define CTL_2GHT20   5
 
#define CTL_5GHT20   6
 
#define CTL_2GHT40   7
 
#define CTL_5GHT40   8
 
#define CTRY_DEBUG   0x1ff
 
#define CTRY_DEFAULT   0
 
#define COUNTRY_ERD_FLAG   0x8000
 
#define WORLDWIDE_ROAMING_FLAG   0x4000
 
#define MULTI_DOMAIN_MASK   0xFF00
 
#define WORLD_SKU_MASK   0x00F0
 
#define WORLD_SKU_PREFIX   0x0060
 
#define CHANNEL_HALF_BW   10
 
#define CHANNEL_QUARTER_BW   5
 

Enumerations

enum  ctl_group { CTL_FCC = 0x10, CTL_MKK = 0x40, CTL_ETSI = 0x30 }
 
enum  CountryCode {
  CTRY_ALBANIA = 8, CTRY_ALGERIA = 12, CTRY_ARGENTINA = 32, CTRY_ARMENIA = 51,
  CTRY_ARUBA = 533, CTRY_AUSTRALIA = 36, CTRY_AUSTRIA = 40, CTRY_AZERBAIJAN = 31,
  CTRY_BAHRAIN = 48, CTRY_BANGLADESH = 50, CTRY_BARBADOS = 52, CTRY_BELARUS = 112,
  CTRY_BELGIUM = 56, CTRY_BELIZE = 84, CTRY_BOLIVIA = 68, CTRY_BOSNIA_HERZ = 70,
  CTRY_BRAZIL = 76, CTRY_BRUNEI_DARUSSALAM = 96, CTRY_BULGARIA = 100, CTRY_CAMBODIA = 116,
  CTRY_CANADA = 124, CTRY_CHILE = 152, CTRY_CHINA = 156, CTRY_COLOMBIA = 170,
  CTRY_COSTA_RICA = 188, CTRY_CROATIA = 191, CTRY_CYPRUS = 196, CTRY_CZECH = 203,
  CTRY_DENMARK = 208, CTRY_DOMINICAN_REPUBLIC = 214, CTRY_ECUADOR = 218, CTRY_EGYPT = 818,
  CTRY_EL_SALVADOR = 222, CTRY_ESTONIA = 233, CTRY_FAEROE_ISLANDS = 234, CTRY_FINLAND = 246,
  CTRY_FRANCE = 250, CTRY_GEORGIA = 268, CTRY_GERMANY = 276, CTRY_GREECE = 300,
  CTRY_GREENLAND = 304, CTRY_GRENEDA = 308, CTRY_GUAM = 316, CTRY_GUATEMALA = 320,
  CTRY_HAITI = 332, CTRY_HONDURAS = 340, CTRY_HONG_KONG = 344, CTRY_HUNGARY = 348,
  CTRY_ICELAND = 352, CTRY_INDIA = 356, CTRY_INDONESIA = 360, CTRY_IRAN = 364,
  CTRY_IRAQ = 368, CTRY_IRELAND = 372, CTRY_ISRAEL = 376, CTRY_ITALY = 380,
  CTRY_JAMAICA = 388, CTRY_JAPAN = 392, CTRY_JORDAN = 400, CTRY_KAZAKHSTAN = 398,
  CTRY_KENYA = 404, CTRY_KOREA_NORTH = 408, CTRY_KOREA_ROC = 410, CTRY_KOREA_ROC2 = 411,
  CTRY_KOREA_ROC3 = 412, CTRY_KUWAIT = 414, CTRY_LATVIA = 428, CTRY_LEBANON = 422,
  CTRY_LIBYA = 434, CTRY_LIECHTENSTEIN = 438, CTRY_LITHUANIA = 440, CTRY_LUXEMBOURG = 442,
  CTRY_MACAU = 446, CTRY_MACEDONIA = 807, CTRY_MALAYSIA = 458, CTRY_MALTA = 470,
  CTRY_MEXICO = 484, CTRY_MONACO = 492, CTRY_MOROCCO = 504, CTRY_NEPAL = 524,
  CTRY_NETHERLANDS = 528, CTRY_NETHERLANDS_ANTILLES = 530, CTRY_NEW_ZEALAND = 554, CTRY_NICARAGUA = 558,
  CTRY_NORWAY = 578, CTRY_OMAN = 512, CTRY_PAKISTAN = 586, CTRY_PANAMA = 591,
  CTRY_PAPUA_NEW_GUINEA = 598, CTRY_PARAGUAY = 600, CTRY_PERU = 604, CTRY_PHILIPPINES = 608,
  CTRY_POLAND = 616, CTRY_PORTUGAL = 620, CTRY_PUERTO_RICO = 630, CTRY_QATAR = 634,
  CTRY_ROMANIA = 642, CTRY_RUSSIA = 643, CTRY_SAUDI_ARABIA = 682, CTRY_SERBIA_MONTENEGRO = 891,
  CTRY_SINGAPORE = 702, CTRY_SLOVAKIA = 703, CTRY_SLOVENIA = 705, CTRY_SOUTH_AFRICA = 710,
  CTRY_SPAIN = 724, CTRY_SRI_LANKA = 144, CTRY_SWEDEN = 752, CTRY_SWITZERLAND = 756,
  CTRY_SYRIA = 760, CTRY_TAIWAN = 158, CTRY_THAILAND = 764, CTRY_TRINIDAD_Y_TOBAGO = 780,
  CTRY_TUNISIA = 788, CTRY_TURKEY = 792, CTRY_UAE = 784, CTRY_UKRAINE = 804,
  CTRY_UNITED_KINGDOM = 826, CTRY_UNITED_STATES = 840, CTRY_UNITED_STATES_FCC49 = 842, CTRY_URUGUAY = 858,
  CTRY_UZBEKISTAN = 860, CTRY_VENEZUELA = 862, CTRY_VIET_NAM = 704, CTRY_YEMEN = 887,
  CTRY_ZIMBABWE = 716, CTRY_JAPAN1 = 393, CTRY_JAPAN2 = 394, CTRY_JAPAN3 = 395,
  CTRY_JAPAN4 = 396, CTRY_JAPAN5 = 397, CTRY_JAPAN6 = 4006, CTRY_JAPAN7 = 4007,
  CTRY_JAPAN8 = 4008, CTRY_JAPAN9 = 4009, CTRY_JAPAN10 = 4010, CTRY_JAPAN11 = 4011,
  CTRY_JAPAN12 = 4012, CTRY_JAPAN13 = 4013, CTRY_JAPAN14 = 4014, CTRY_JAPAN15 = 4015,
  CTRY_JAPAN16 = 4016, CTRY_JAPAN17 = 4017, CTRY_JAPAN18 = 4018, CTRY_JAPAN19 = 4019,
  CTRY_JAPAN20 = 4020, CTRY_JAPAN21 = 4021, CTRY_JAPAN22 = 4022, CTRY_JAPAN23 = 4023,
  CTRY_JAPAN24 = 4024, CTRY_JAPAN25 = 4025, CTRY_JAPAN26 = 4026, CTRY_JAPAN27 = 4027,
  CTRY_JAPAN28 = 4028, CTRY_JAPAN29 = 4029, CTRY_JAPAN30 = 4030, CTRY_JAPAN31 = 4031,
  CTRY_JAPAN32 = 4032, CTRY_JAPAN33 = 4033, CTRY_JAPAN34 = 4034, CTRY_JAPAN35 = 4035,
  CTRY_JAPAN36 = 4036, CTRY_JAPAN37 = 4037, CTRY_JAPAN38 = 4038, CTRY_JAPAN39 = 4039,
  CTRY_JAPAN40 = 4040, CTRY_JAPAN41 = 4041, CTRY_JAPAN42 = 4042, CTRY_JAPAN43 = 4043,
  CTRY_JAPAN44 = 4044, CTRY_JAPAN45 = 4045, CTRY_JAPAN46 = 4046, CTRY_JAPAN47 = 4047,
  CTRY_JAPAN48 = 4048, CTRY_JAPAN49 = 4049, CTRY_JAPAN50 = 4050, CTRY_JAPAN51 = 4051,
  CTRY_JAPAN52 = 4052, CTRY_JAPAN53 = 4053, CTRY_JAPAN54 = 4054, CTRY_JAPAN55 = 4055,
  CTRY_JAPAN56 = 4056, CTRY_JAPAN57 = 4057, CTRY_JAPAN58 = 4058, CTRY_JAPAN59 = 4059,
  CTRY_AUSTRALIA2 = 5000, CTRY_CANADA2 = 5001, CTRY_BELGIUM2 = 5002
}
 

Functions

 FILE_LICENCE (BSD2)
 
int ath_is_world_regd (struct ath_regulatory *reg)
 
int ath_is_49ghz_allowed (u16 redomain)
 
u32 ath_regd_get_band_ctl (struct ath_regulatory *reg, int band)
 

Macro Definition Documentation

◆ NO_CTL [1/2]

#define NO_CTL   0xff

Definition at line 35 of file regd.h.

◆ SD_NO_CTL

#define SD_NO_CTL   0xE0

Definition at line 34 of file regd.h.

◆ NO_CTL [2/2]

#define NO_CTL   0xff

Definition at line 35 of file regd.h.

◆ CTL_11A

#define CTL_11A   0

Definition at line 36 of file regd.h.

◆ CTL_11B

#define CTL_11B   1

Definition at line 37 of file regd.h.

◆ CTL_11G

#define CTL_11G   2

Definition at line 38 of file regd.h.

◆ CTL_2GHT20

#define CTL_2GHT20   5

Definition at line 39 of file regd.h.

◆ CTL_5GHT20

#define CTL_5GHT20   6

Definition at line 40 of file regd.h.

◆ CTL_2GHT40

#define CTL_2GHT40   7

Definition at line 41 of file regd.h.

◆ CTL_5GHT40

#define CTL_5GHT40   8

Definition at line 42 of file regd.h.

◆ CTRY_DEBUG

#define CTRY_DEBUG   0x1ff

Definition at line 44 of file regd.h.

◆ CTRY_DEFAULT

#define CTRY_DEFAULT   0

Definition at line 45 of file regd.h.

◆ COUNTRY_ERD_FLAG

#define COUNTRY_ERD_FLAG   0x8000

Definition at line 47 of file regd.h.

◆ WORLDWIDE_ROAMING_FLAG

#define WORLDWIDE_ROAMING_FLAG   0x4000

Definition at line 48 of file regd.h.

◆ MULTI_DOMAIN_MASK

#define MULTI_DOMAIN_MASK   0xFF00

Definition at line 50 of file regd.h.

◆ WORLD_SKU_MASK

#define WORLD_SKU_MASK   0x00F0

Definition at line 52 of file regd.h.

◆ WORLD_SKU_PREFIX

#define WORLD_SKU_PREFIX   0x0060

Definition at line 53 of file regd.h.

◆ CHANNEL_HALF_BW

#define CHANNEL_HALF_BW   10

Definition at line 55 of file regd.h.

◆ CHANNEL_QUARTER_BW

#define CHANNEL_QUARTER_BW   5

Definition at line 56 of file regd.h.

Enumeration Type Documentation

◆ ctl_group

enum ctl_group
Enumerator
CTL_FCC 
CTL_MKK 
CTL_ETSI 

Definition at line 27 of file regd.h.

27  {
28  CTL_FCC = 0x10,
29  CTL_MKK = 0x40,
30  CTL_ETSI = 0x30,
31 };
Definition: regd.h:30
Definition: regd.h:28
Definition: regd.h:29

◆ CountryCode

Enumerator
CTRY_ALBANIA 
CTRY_ALGERIA 
CTRY_ARGENTINA 
CTRY_ARMENIA 
CTRY_ARUBA 
CTRY_AUSTRALIA 
CTRY_AUSTRIA 
CTRY_AZERBAIJAN 
CTRY_BAHRAIN 
CTRY_BANGLADESH 
CTRY_BARBADOS 
CTRY_BELARUS 
CTRY_BELGIUM 
CTRY_BELIZE 
CTRY_BOLIVIA 
CTRY_BOSNIA_HERZ 
CTRY_BRAZIL 
CTRY_BRUNEI_DARUSSALAM 
CTRY_BULGARIA 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APAN46 
CTRY_JAPAN47 
CTRY_JAPAN48 
CTRY_JAPAN49 
CTRY_JAPAN50 
CTRY_JAPAN51 
CTRY_JAPAN52 
CTRY_JAPAN53 
CTRY_JAPAN54 
CTRY_JAPAN55 
CTRY_JAPAN56 
CTRY_JAPAN57 
CTRY_JAPAN58 
CTRY_JAPAN59 
CTRY_AUSTRALIA2 
CTRY_CANADA2 
CTRY_BELGIUM2 

Definition at line 64 of file regd.h.

64  {
65  CTRY_ALBANIA = 8,
66  CTRY_ALGERIA = 12,
67  CTRY_ARGENTINA = 32,
68  CTRY_ARMENIA = 51,
69  CTRY_ARUBA = 533,
70  CTRY_AUSTRALIA = 36,
71  CTRY_AUSTRIA = 40,
72  CTRY_AZERBAIJAN = 31,
73  CTRY_BAHRAIN = 48,
74  CTRY_BANGLADESH = 50,
75  CTRY_BARBADOS = 52,
76  CTRY_BELARUS = 112,
77  CTRY_BELGIUM = 56,
78  CTRY_BELIZE = 84,
79  CTRY_BOLIVIA = 68,
80  CTRY_BOSNIA_HERZ = 70,
81  CTRY_BRAZIL = 76,
83  CTRY_BULGARIA = 100,
84  CTRY_CAMBODIA = 116,
85  CTRY_CANADA = 124,
86  CTRY_CHILE = 152,
87  CTRY_CHINA = 156,
88  CTRY_COLOMBIA = 170,
89  CTRY_COSTA_RICA = 188,
90  CTRY_CROATIA = 191,
91  CTRY_CYPRUS = 196,
92  CTRY_CZECH = 203,
93  CTRY_DENMARK = 208,
95  CTRY_ECUADOR = 218,
96  CTRY_EGYPT = 818,
97  CTRY_EL_SALVADOR = 222,
98  CTRY_ESTONIA = 233,
99  CTRY_FAEROE_ISLANDS = 234,
100  CTRY_FINLAND = 246,
101  CTRY_FRANCE = 250,
102  CTRY_GEORGIA = 268,
103  CTRY_GERMANY = 276,
104  CTRY_GREECE = 300,
105  CTRY_GREENLAND = 304,
106  CTRY_GRENEDA = 308,
107  CTRY_GUAM = 316,
108  CTRY_GUATEMALA = 320,
109  CTRY_HAITI = 332,
110  CTRY_HONDURAS = 340,
111  CTRY_HONG_KONG = 344,
112  CTRY_HUNGARY = 348,
113  CTRY_ICELAND = 352,
114  CTRY_INDIA = 356,
115  CTRY_INDONESIA = 360,
116  CTRY_IRAN = 364,
117  CTRY_IRAQ = 368,
118  CTRY_IRELAND = 372,
119  CTRY_ISRAEL = 376,
120  CTRY_ITALY = 380,
121  CTRY_JAMAICA = 388,
122  CTRY_JAPAN = 392,
123  CTRY_JORDAN = 400,
124  CTRY_KAZAKHSTAN = 398,
125  CTRY_KENYA = 404,
126  CTRY_KOREA_NORTH = 408,
127  CTRY_KOREA_ROC = 410,
128  CTRY_KOREA_ROC2 = 411,
129  CTRY_KOREA_ROC3 = 412,
130  CTRY_KUWAIT = 414,
131  CTRY_LATVIA = 428,
132  CTRY_LEBANON = 422,
133  CTRY_LIBYA = 434,
134  CTRY_LIECHTENSTEIN = 438,
135  CTRY_LITHUANIA = 440,
136  CTRY_LUXEMBOURG = 442,
137  CTRY_MACAU = 446,
138  CTRY_MACEDONIA = 807,
139  CTRY_MALAYSIA = 458,
140  CTRY_MALTA = 470,
141  CTRY_MEXICO = 484,
142  CTRY_MONACO = 492,
143  CTRY_MOROCCO = 504,
144  CTRY_NEPAL = 524,
145  CTRY_NETHERLANDS = 528,
147  CTRY_NEW_ZEALAND = 554,
148  CTRY_NICARAGUA = 558,
149  CTRY_NORWAY = 578,
150  CTRY_OMAN = 512,
151  CTRY_PAKISTAN = 586,
152  CTRY_PANAMA = 591,
153  CTRY_PAPUA_NEW_GUINEA = 598,
154  CTRY_PARAGUAY = 600,
155  CTRY_PERU = 604,
156  CTRY_PHILIPPINES = 608,
157  CTRY_POLAND = 616,
158  CTRY_PORTUGAL = 620,
159  CTRY_PUERTO_RICO = 630,
160  CTRY_QATAR = 634,
161  CTRY_ROMANIA = 642,
162  CTRY_RUSSIA = 643,
163  CTRY_SAUDI_ARABIA = 682,
165  CTRY_SINGAPORE = 702,
166  CTRY_SLOVAKIA = 703,
167  CTRY_SLOVENIA = 705,
168  CTRY_SOUTH_AFRICA = 710,
169  CTRY_SPAIN = 724,
170  CTRY_SRI_LANKA = 144,
171  CTRY_SWEDEN = 752,
172  CTRY_SWITZERLAND = 756,
173  CTRY_SYRIA = 760,
174  CTRY_TAIWAN = 158,
175  CTRY_THAILAND = 764,
177  CTRY_TUNISIA = 788,
178  CTRY_TURKEY = 792,
179  CTRY_UAE = 784,
180  CTRY_UKRAINE = 804,
181  CTRY_UNITED_KINGDOM = 826,
182  CTRY_UNITED_STATES = 840,
184  CTRY_URUGUAY = 858,
185  CTRY_UZBEKISTAN = 860,
186  CTRY_VENEZUELA = 862,
187  CTRY_VIET_NAM = 704,
188  CTRY_YEMEN = 887,
189  CTRY_ZIMBABWE = 716,
190  CTRY_JAPAN1 = 393,
191  CTRY_JAPAN2 = 394,
192  CTRY_JAPAN3 = 395,
193  CTRY_JAPAN4 = 396,
194  CTRY_JAPAN5 = 397,
195  CTRY_JAPAN6 = 4006,
196  CTRY_JAPAN7 = 4007,
197  CTRY_JAPAN8 = 4008,
198  CTRY_JAPAN9 = 4009,
199  CTRY_JAPAN10 = 4010,
200  CTRY_JAPAN11 = 4011,
201  CTRY_JAPAN12 = 4012,
202  CTRY_JAPAN13 = 4013,
203  CTRY_JAPAN14 = 4014,
204  CTRY_JAPAN15 = 4015,
205  CTRY_JAPAN16 = 4016,
206  CTRY_JAPAN17 = 4017,
207  CTRY_JAPAN18 = 4018,
208  CTRY_JAPAN19 = 4019,
209  CTRY_JAPAN20 = 4020,
210  CTRY_JAPAN21 = 4021,
211  CTRY_JAPAN22 = 4022,
212  CTRY_JAPAN23 = 4023,
213  CTRY_JAPAN24 = 4024,
214  CTRY_JAPAN25 = 4025,
215  CTRY_JAPAN26 = 4026,
216  CTRY_JAPAN27 = 4027,
217  CTRY_JAPAN28 = 4028,
218  CTRY_JAPAN29 = 4029,
219  CTRY_JAPAN30 = 4030,
220  CTRY_JAPAN31 = 4031,
221  CTRY_JAPAN32 = 4032,
222  CTRY_JAPAN33 = 4033,
223  CTRY_JAPAN34 = 4034,
224  CTRY_JAPAN35 = 4035,
225  CTRY_JAPAN36 = 4036,
226  CTRY_JAPAN37 = 4037,
227  CTRY_JAPAN38 = 4038,
228  CTRY_JAPAN39 = 4039,
229  CTRY_JAPAN40 = 4040,
230  CTRY_JAPAN41 = 4041,
231  CTRY_JAPAN42 = 4042,
232  CTRY_JAPAN43 = 4043,
233  CTRY_JAPAN44 = 4044,
234  CTRY_JAPAN45 = 4045,
235  CTRY_JAPAN46 = 4046,
236  CTRY_JAPAN47 = 4047,
237  CTRY_JAPAN48 = 4048,
238  CTRY_JAPAN49 = 4049,
239  CTRY_JAPAN50 = 4050,
240  CTRY_JAPAN51 = 4051,
241  CTRY_JAPAN52 = 4052,
242  CTRY_JAPAN53 = 4053,
243  CTRY_JAPAN54 = 4054,
244  CTRY_JAPAN55 = 4055,
245  CTRY_JAPAN56 = 4056,
246  CTRY_JAPAN57 = 4057,
247  CTRY_JAPAN58 = 4058,
248  CTRY_JAPAN59 = 4059,
249  CTRY_AUSTRALIA2 = 5000,
250  CTRY_CANADA2 = 5001,
251  CTRY_BELGIUM2 = 5002
252 };
Definition: regd.h:179

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( BSD2  )

◆ ath_is_world_regd()

int ath_is_world_regd ( struct ath_regulatory reg)

◆ ath_is_49ghz_allowed()

int ath_is_49ghz_allowed ( u16  redomain)

◆ ath_regd_get_band_ctl()

u32 ath_regd_get_band_ctl ( struct ath_regulatory reg,
int  band 
)
  • Can be used for:* Can be used by 0x63 and 0x65 */* Can be used by 0x64 only */* Can be used by 0x66 and 0x69 */* Can be used by 0x67, 0x68, 0x6A and 0x6C */* Frequency is one where radar detection is required */** Allows active scan scan on Ch 12 and 13 */* Always apply Radar/DFS rules on freq range 5260 MHz - 5700 MHz */* EEPROM country code to regpair mapping */* EEPROM rd code to regpair mapping */* Returns the map of the EEPROM set RD to a country code */*

Definition at line 584 of file ath_regd.c.

586 {
587  /* TODO Cottsay: reg */
588 // if (!reg->regpair ||
589 // (reg->country_code == CTRY_DEFAULT &&
590 // is_wwr_sku(ath_regd_get_eepromRD(reg)))) {
591 // return SD_NO_CTL;
592 // }
593 
594  switch (band) {
595  case NET80211_BAND_2GHZ:
596  return reg->regpair->reg_2ghz_ctl;
597  case NET80211_BAND_5GHZ:
598  return reg->regpair->reg_5ghz_ctl;
599  default:
600  return NO_CTL;
601  }
602 }
#define NET80211_BAND_2GHZ
The 2.4 GHz ISM band, unlicensed in most countries.
Definition: net80211.h:45
#define NET80211_BAND_5GHZ
The band from 4.9 GHz to 5.7 GHz, which tends to be more restricted.
Definition: net80211.h:47
static unsigned int unsigned int reg
Definition: intel.h:245
#define NO_CTL
Definition: eeprom.h:68

References NET80211_BAND_2GHZ, NET80211_BAND_5GHZ, NO_CTL, and reg.

Referenced by ath9k_regd_get_ctl().