Main Page | Data Structures | Directories | File List | Data Fields | Globals

ieee80211_regdomain.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IEEE80211_DMN(_d)   ((_d) & ~0xf0000000)
#define IEEE80211_REGDOMAIN_NAMES
#define IEEE80211_REGDOMAIN_MAP
#define CTRY_DEFAULT   0
#define IEEE80211_REGDOMAIN_COUNTRY_NAMES
#define IEEE80211_CHANNELS_2GHZ_MIN   2412
#define IEEE80211_CHANNELS_2GHZ_MAX   2732
#define IEEE80211_CHANNELS_2GHZ
#define IEEE80211_CHANNELS_5GHZ_MIN   5005
#define IEEE80211_CHANNELS_5GHZ_MAX   6100
#define IEEE80211_CHANNELS_5GHZ

Typedefs

typedef u_int32_t ieee80211_regdomain_t

Enumerations

enum  ieee80211_regdomain {
  DMN_DEFAULT = 0x00, DMN_NULL_WORLD = 0x03, DMN_NULL_ETSIB = 0x07, DMN_NULL_ETSIC = 0x08,
  DMN_FCC1_FCCA = 0x10, DMN_FCC1_WORLD = 0x11, DMN_FCC2_FCCA = 0x20, DMN_FCC2_WORLD = 0x21,
  DMN_FCC2_ETSIC = 0x22, DMN_FRANCE_NULL = 0x31, DMN_FCC3_FCCA = 0x3A, DMN_ETSI1_WORLD = 0x37,
  DMN_ETSI3_ETSIA = 0x32, DMN_ETSI2_WORLD = 0x35, DMN_ETSI3_WORLD = 0x36, DMN_ETSI4_WORLD = 0x30,
  DMN_ETSI4_ETSIC = 0x38, DMN_ETSI5_WORLD = 0x39, DMN_ETSI6_WORLD = 0x34, DMN_ETSI_NULL = 0x33,
  DMN_MKK1_MKKA = 0x40, DMN_MKK1_MKKB = 0x41, DMN_APL4_WORLD = 0x42, DMN_MKK2_MKKA = 0x43,
  DMN_APL_NULL = 0x44, DMN_APL2_WORLD = 0x45, DMN_APL2_APLC = 0x46, DMN_APL3_WORLD = 0x47,
  DMN_MKK1_FCCA = 0x48, DMN_APL2_APLD = 0x49, DMN_MKK1_MKKA1 = 0x4A, DMN_MKK1_MKKA2 = 0x4B,
  DMN_APL1_WORLD = 0x52, DMN_APL1_FCCA = 0x53, DMN_APL1_APLA = 0x54, DMN_APL1_ETSIC = 0x55,
  DMN_APL2_ETSIC = 0x56, DMN_APL5_WORLD = 0x58, DMN_WOR0_WORLD = 0x60, DMN_WOR1_WORLD = 0x61,
  DMN_WOR2_WORLD = 0x62, DMN_WOR3_WORLD = 0x63, DMN_WOR4_WORLD = 0x64, DMN_WOR5_ETSIC = 0x65,
  DMN_WOR01_WORLD = 0x66, DMN_WOR02_WORLD = 0x67, DMN_EU1_WORLD = 0x68, DMN_WOR9_WORLD = 0x69,
  DMN_WORA_WORLD = 0x6A, DMN_APL1 = 0xf0000001, DMN_APL2 = 0xf0000002, DMN_APL3 = 0xf0000004,
  DMN_APL4 = 0xf0000008, DMN_APL5 = 0xf0000010, DMN_ETSI1 = 0xf0000020, DMN_ETSI2 = 0xf0000040,
  DMN_ETSI3 = 0xf0000080, DMN_ETSI4 = 0xf0000100, DMN_ETSI5 = 0xf0000200, DMN_ETSI6 = 0xf0000400,
  DMN_ETSIA = 0xf0000800, DMN_ETSIB = 0xf0001000, DMN_ETSIC = 0xf0002000, DMN_FCC1 = 0xf0004000,
  DMN_FCC2 = 0xf0008000, DMN_FCC3 = 0xf0010000, DMN_FCCA = 0xf0020000, DMN_APLD = 0xf0040000,
  DMN_MKK1 = 0xf0080000, DMN_MKK2 = 0xf0100000, DMN_MKKA = 0xf0200000, DMN_NULL = 0xf0400000,
  DMN_WORLD = 0xf0800000, DMN_DEBUG = 0xf1000000
}
enum  ieee80211_countrycode {
  CTRY_ALBANIA = 8, CTRY_ALGERIA = 12, CTRY_ARGENTINA = 32, CTRY_ARMENIA = 51,
  CTRY_AUSTRALIA = 36, CTRY_AUSTRIA = 40, CTRY_AZERBAIJAN = 31, CTRY_BAHRAIN = 48,
  CTRY_BELARUS = 112, CTRY_BELGIUM = 56, CTRY_BELIZE = 84, CTRY_BOLIVIA = 68,
  CTRY_BRAZIL = 76, CTRY_BRUNEI_DARUSSALAM = 96, CTRY_BULGARIA = 100, 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_FRANCE2 = 255, CTRY_GEORGIA = 268, CTRY_GERMANY = 276, CTRY_GREECE = 300,
  CTRY_GUATEMALA = 320, 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_JAPAN1 = 393, CTRY_JAPAN2 = 394,
  CTRY_JAPAN3 = 395, CTRY_JAPAN4 = 396, CTRY_JAPAN5 = 397, CTRY_JORDAN = 400,
  CTRY_KAZAKHSTAN = 398, CTRY_KENYA = 404, CTRY_KOREA_NORTH = 408, CTRY_KOREA_ROC = 410,
  CTRY_KOREA_ROC2 = 411, 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_MEXICO = 484,
  CTRY_MONACO = 492, CTRY_MOROCCO = 504, CTRY_NETHERLANDS = 528, CTRY_NEW_ZEALAND = 554,
  CTRY_NICARAGUA = 558, CTRY_NORWAY = 578, CTRY_OMAN = 512, CTRY_PAKISTAN = 586,
  CTRY_PANAMA = 591, 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_SINGAPORE = 702,
  CTRY_SLOVAKIA = 703, CTRY_SLOVENIA = 705, CTRY_SOUTH_AFRICA = 710, CTRY_SPAIN = 724,
  CTRY_SRI_LANKA = 728, 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_URUGUAY = 858, CTRY_UZBEKISTAN = 860, CTRY_VENEZUELA = 862,
  CTRY_VIET_NAM = 704, CTRY_YEMEN = 887, CTRY_ZIMBABWE = 716
}
enum  ieee80211_ctl {
  CTL_11A = 0x00, CTL_11B = 0x01, CTL_11G = 0x02, CTL_TURBO = 0x03,
  CTL_TURBO_G = 0x04, CTL_FCC = 0x10, CTL_ETSI = 0x30, CTL_MKK = 0x40,
  CTL_NONEA = 0xff
}

Functions

u_int16_t ieee80211_name2countrycode (const char *)
u_int32_t ieee80211_name2regdomain (const char *)
const char * ieee80211_countrycode2name (u_int16_t)
const char * ieee80211_regdomain2name (u_int32_t)
u_int32_t ieee80211_regdomain2flag (u_int16_t, u_int16_t)
u_int32_t ieee80211_countrycode2regdomain (u_int16_t)


Define Documentation

#define CTRY_DEFAULT   0
 

Definition at line 245 of file ieee80211_regdomain.h.

#define IEEE80211_CHANNELS_2GHZ
 

Value:

{       \
        { 2412, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2417, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2422, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2427, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2432, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2437, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2442, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2447, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2452, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2457, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2462, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2467, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2472, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2477, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
        { 2482, DMN_FCC1, IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_CCK | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_DYN },        \
}

Definition at line 512 of file ieee80211_regdomain.h.

#define IEEE80211_CHANNELS_2GHZ_MAX   2732
 

Definition at line 504 of file ieee80211_regdomain.h.

#define IEEE80211_CHANNELS_2GHZ_MIN   2412
 

Definition at line 503 of file ieee80211_regdomain.h.

#define IEEE80211_CHANNELS_5GHZ
 

Value:

Definition at line 533 of file ieee80211_regdomain.h.

#define IEEE80211_CHANNELS_5GHZ_MAX   6100
 

Definition at line 531 of file ieee80211_regdomain.h.

Referenced by ieee80211_regdomain2flag().

#define IEEE80211_CHANNELS_5GHZ_MIN   5005
 

Definition at line 530 of file ieee80211_regdomain.h.

Referenced by ieee80211_regdomain2flag().

#define IEEE80211_DMN _d  )    ((_d) & ~0xf0000000)
 

Definition at line 102 of file ieee80211_regdomain.h.

#define IEEE80211_REGDOMAIN_COUNTRY_NAMES
 

Definition at line 372 of file ieee80211_regdomain.h.

#define IEEE80211_REGDOMAIN_MAP
 

Definition at line 192 of file ieee80211_regdomain.h.

#define IEEE80211_REGDOMAIN_NAMES
 

Definition at line 109 of file ieee80211_regdomain.h.


Typedef Documentation

typedef u_int32_t ieee80211_regdomain_t
 

Definition at line 22 of file ieee80211_regdomain.h.


Enumeration Type Documentation

enum ieee80211_countrycode
 

Enumeration values:
CTRY_ALBANIA 
CTRY_ALGERIA 
CTRY_ARGENTINA 
CTRY_ARMENIA 
CTRY_AUSTRALIA 
CTRY_AUSTRIA 
CTRY_AZERBAIJAN 
CTRY_BAHRAIN 
CTRY_BELARUS 
CTRY_BELGIUM 
CTRY_BELIZ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R 
CTRY_ROMANIA 
CTRY_RUSSIA 
CTRY_SAUDI_ARABIA 
CTRY_SINGAPORE 
CTRY_SLOVAKIA 
CTRY_SLOVENIA 
CTRY_SOUTH_AFRICA 
CTRY_SPAIN 
CTRY_SRI_LANKA 
CTRY_SWEDEN 
CTRY_SWITZERLAND 
CTRY_SYRIA 
CTRY_TAIWAN 
CTRY_THAILAND 
CTRY_TRINIDAD_Y_TOBAGO 
CTRY_TUNISIA 
CTRY_TURKEY 
CTRY_UAE 
CTRY_UKRAINE 
CTRY_UNITED_KINGDOM 
CTRY_UNITED_STATES 
CTRY_URUGUAY 
CTRY_UZBEKISTAN 
CTRY_VENEZUELA 
CTRY_VIET_NAM 
CTRY_YEMEN 
CTRY_ZIMBABWE 

Definition at line 248 of file ieee80211_regdomain.h.

enum ieee80211_ctl
 

Enumeration values:
CTL_11A 
CTL_11B 
CTL_11G 
CTL_TURBO 
CTL_TURBO_G 
CTL_FCC 
CTL_ETSI 
CTL_MKK 
CTL_NONEA 

Definition at line 491 of file ieee80211_regdomain.h.

enum ieee80211_regdomain
 

Enumeration values:
DMN_DEFAULT 
DMN_NULL_WORLD 
DMN_NULL_ETSIB 
DMN_NULL_ETSIC 
DMN_FCC1_FCCA 
DMN_FCC1_WORLD 
DMN_FCC2_FCCA 
DMN_FCC2_WORLD 
DMN_FCC2_ETSIC 
DMN_FRANCE_NULL 
DMN_FCC3_FCCA 
DMN_ETSI1_WORLD 
DMN_ETSI3_ETSIA 
DMN_ETSI2_WORLD 
DMN_ETSI3_WORLD 
DMN_ETSI4_WORLD 
DMN_ETSI4_ETSIC 
DMN_ETSI5_WORLD 
DMN_ETSI6_WORLD 
DMN_ETSI_NULL 
DMN_MKK1_MKKA 
DMN_MKK1_MKKB 
DMN_APL4_WORLD 
DMN_MKK2_MKKA 
DMN_APL_NULL 
DMN_APL2_WORLD 
DMN_APL2_APLC 
DMN_APL3_WORLD 
DMN_MKK1_FCCA 
DMN_APL2_APLD 
DMN_MKK1_MKKA1 
DMN_MKK1_MKKA2 
DMN_APL1_WORLD 
DMN_APL1_FCCA 
DMN_APL1_APLA 
DMN_APL1_ETSIC 
DMN_APL2_ETSIC 
DMN_APL5_WORLD 
DMN_WOR0_WORLD 
DMN_WOR1_WORLD 
DMN_WOR2_WORLD 
DMN_WOR3_WORLD 
DMN_WOR4_WORLD 
DMN_WOR5_ETSIC 
DMN_WOR01_WORLD 
DMN_WOR02_WORLD 
DMN_EU1_WORLD 
DMN_WOR9_WORLD 
DMN_WORA_WORLD 
DMN_APL1 
DMN_APL2 
DMN_APL3 
DMN_APL4 
DMN_APL5 
DMN_ETSI1 
DMN_ETSI2 
DMN_ETSI3 
DMN_ETSI4 
DMN_ETSI5 
DMN_ETSI6 
DMN_ETSIA 
DMN_ETSIB 
DMN_ETSIC 
DMN_FCC1 
DMN_FCC2 
DMN_FCC3 
DMN_FCCA 
DMN_APLD 
DMN_MKK1 
DMN_MKK2 
DMN_MKKA 
DMN_NULL 
DMN_WORLD 
DMN_DEBUG 

Definition at line 24 of file ieee80211_regdomain.h.


Function Documentation

const char* ieee80211_countrycode2name u_int16_t  ) 
 

Definition at line 116 of file ieee80211_regdomain.c.

References ieee80211_countryname::cn_code, ieee80211_countryname::cn_name, and ieee80211_r_ctry.

u_int32_t ieee80211_countrycode2regdomain u_int16_t  ) 
 

Definition at line 162 of file ieee80211_regdomain.c.

References DMN_DEFAULT, and ieee80211_r_ctry.

Referenced by ar5k_get_regdomain().

u_int16_t ieee80211_name2countrycode const char *  ) 
 

Definition at line 88 of file ieee80211_regdomain.c.

References bsearch(), CTRY_DEFAULT, ieee80211_r_ctry, and ieee80211_regdomain_compare_cn().

Referenced by ar5k_get_regdomain().

Here is the call graph for this function:

u_int32_t ieee80211_name2regdomain const char *  ) 
 

Definition at line 102 of file ieee80211_regdomain.c.

References bsearch(), DMN_DEFAULT, ieee80211_r_names, and ieee80211_regdomain_compare_rn().

Here is the call graph for this function:

u_int32_t ieee80211_regdomain2flag u_int16_t ,
u_int16_t 
 

Definition at line 143 of file ieee80211_regdomain.c.

References DMN_DEBUG, IEEE80211_CHANNELS_5GHZ_MAX, IEEE80211_CHANNELS_5GHZ_MIN, ieee80211_r_map, ieee80211_regdomainmap::rm_domain, ieee80211_regdomainmap::rm_domain_2ghz, and ieee80211_regdomainmap::rm_domain_5ghz.

const char* ieee80211_regdomain2name u_int32_t  ) 
 

Definition at line 129 of file ieee80211_regdomain.c.

References ieee80211_r_names, ieee80211_regdomainname::rn_domain, and ieee80211_regdomainname::rn_name.


Generated on Mon Nov 21 16:04:33 2005 for openwifi by  doxygen 1.4.1