diff options
Diffstat (limited to 'contrib/package/iwinfo/src/include')
-rw-r--r-- | contrib/package/iwinfo/src/include/broadcom.h | 16 | ||||
-rw-r--r-- | contrib/package/iwinfo/src/include/madwifi.h | 168 |
2 files changed, 15 insertions, 169 deletions
diff --git a/contrib/package/iwinfo/src/include/broadcom.h b/contrib/package/iwinfo/src/include/broadcom.h index 9652d7433..bee9faf25 100644 --- a/contrib/package/iwinfo/src/include/broadcom.h +++ b/contrib/package/iwinfo/src/include/broadcom.h @@ -6,7 +6,7 @@ * * Copyright 2006, Broadcom Corporation * All Rights Reserved. - * + * * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS @@ -26,6 +26,8 @@ #define WLC_IOCTL_MAGIC 0x14e46c77 #define WLC_IOCTL_MAXLEN 8192 +#define WLC_CNTRY_BUF_SZ 4 + #define WLC_GET_MAGIC 0 #define WLC_GET_RATE 12 #define WLC_GET_INFRA 19 @@ -34,6 +36,7 @@ #define WLC_GET_SSID 25 #define WLC_GET_CHANNEL 29 #define WLC_GET_PASSIVE 48 +#define WLC_GET_COUNTRY 83 #define WLC_GET_REVINFO 98 #define WLC_GET_AP 117 #define WLC_GET_RSSI 127 @@ -42,6 +45,8 @@ #define WLC_GET_BSS_INFO 136 #define WLC_GET_ASSOCLIST 159 #define WLC_GET_WPA_AUTH 164 +//#define WLC_GET_CHANNELS_IN_COUNTRY 260 +#define WLC_GET_COUNTRY_LIST 261 #define WLC_GET_VAR 262 @@ -91,4 +96,13 @@ typedef struct wlc_rev_info { uint chipnum; /* chip number */ } wlc_rev_info_t; +typedef struct wl_country_list { + uint32_t buflen; + uint32_t band_set; + uint32_t band; + uint32_t count; + char country_abbrev[1]; +} wl_country_list_t; + + #endif diff --git a/contrib/package/iwinfo/src/include/madwifi.h b/contrib/package/iwinfo/src/include/madwifi.h index d90e43d1e..ff90b2251 100644 --- a/contrib/package/iwinfo/src/include/madwifi.h +++ b/contrib/package/iwinfo/src/include/madwifi.h @@ -134,172 +134,4 @@ struct ieee80211req_sta_info { u_int8_t isi_opmode; /* sta operating mode */ }; -/* - * Country/Region Codes from MS WINNLS.H - * Numbering from ISO 3166 - * XXX belongs elsewhere - */ - -enum CountryCode { - CTRY_ALBANIA = 8, /* Albania */ - CTRY_ALGERIA = 12, /* Algeria */ - CTRY_ARGENTINA = 32, /* Argentina */ - CTRY_ARMENIA = 51, /* Armenia */ - CTRY_AUSTRALIA = 36, /* Australia */ - CTRY_AUSTRIA = 40, /* Austria */ - CTRY_AZERBAIJAN = 31, /* Azerbaijan */ - CTRY_BAHRAIN = 48, /* Bahrain */ - CTRY_BELARUS = 112, /* Belarus */ - CTRY_BELGIUM = 56, /* Belgium */ - CTRY_BELIZE = 84, /* Belize */ - CTRY_BOLIVIA = 68, /* Bolivia */ - CTRY_BRAZIL = 76, /* Brazil */ - CTRY_BRUNEI_DARUSSALAM = 96, /* Brunei Darussalam */ - CTRY_BULGARIA = 100, /* Bulgaria */ - CTRY_CANADA = 124, /* Canada */ - CTRY_CHILE = 152, /* Chile */ - CTRY_CHINA = 156, /* People's Republic of China */ - CTRY_COLOMBIA = 170, /* Colombia */ - CTRY_COSTA_RICA = 188, /* Costa Rica */ - CTRY_CROATIA = 191, /* Croatia */ - CTRY_CYPRUS = 196, - CTRY_CZECH = 203, /* Czech Republic */ - CTRY_DENMARK = 208, /* Denmark */ - CTRY_DOMINICAN_REPUBLIC = 214, /* Dominican Republic */ - CTRY_ECUADOR = 218, /* Ecuador */ - CTRY_EGYPT = 818, /* Egypt */ - CTRY_EL_SALVADOR = 222, /* El Salvador */ - CTRY_ESTONIA = 233, /* Estonia */ - CTRY_FAEROE_ISLANDS = 234, /* Faeroe Islands */ - CTRY_FINLAND = 246, /* Finland */ - CTRY_FRANCE = 250, /* France */ - CTRY_FRANCE2 = 255, /* France2 */ - CTRY_GEORGIA = 268, /* Georgia */ - CTRY_GERMANY = 276, /* Germany */ - CTRY_GREECE = 300, /* Greece */ - CTRY_GUATEMALA = 320, /* Guatemala */ - CTRY_HONDURAS = 340, /* Honduras */ - CTRY_HONG_KONG = 344, /* Hong Kong S.A.R., P.R.C. */ - CTRY_HUNGARY = 348, /* Hungary */ - CTRY_ICELAND = 352, /* Iceland */ - CTRY_INDIA = 356, /* India */ - CTRY_INDONESIA = 360, /* Indonesia */ - CTRY_IRAN = 364, /* Iran */ - CTRY_IRAQ = 368, /* Iraq */ - CTRY_IRELAND = 372, /* Ireland */ - CTRY_ISRAEL = 376, /* Israel */ - CTRY_ITALY = 380, /* Italy */ - CTRY_JAMAICA = 388, /* Jamaica */ - CTRY_JAPAN = 392, /* Japan */ - CTRY_JAPAN1 = 393, /* Japan (JP1) */ - CTRY_JAPAN2 = 394, /* Japan (JP0) */ - CTRY_JAPAN3 = 395, /* Japan (JP1-1) */ - CTRY_JAPAN4 = 396, /* Japan (JE1) */ - CTRY_JAPAN5 = 397, /* Japan (JE2) */ - CTRY_JAPAN6 = 399, /* Japan (JP6) */ - CTRY_JAPAN7 = 900, /* Japan */ - CTRY_JAPAN8 = 901, /* Japan */ - CTRY_JAPAN9 = 902, /* Japan */ - CTRY_JAPAN10 = 903, /* Japan */ - CTRY_JAPAN11 = 904, /* Japan */ - CTRY_JAPAN12 = 905, /* Japan */ - CTRY_JAPAN13 = 906, /* Japan */ - CTRY_JAPAN14 = 907, /* Japan */ - CTRY_JAPAN15 = 908, /* Japan */ - CTRY_JAPAN16 = 909, /* Japan */ - CTRY_JAPAN17 = 910, /* Japan */ - CTRY_JAPAN18 = 911, /* Japan */ - CTRY_JAPAN19 = 912, /* Japan */ - CTRY_JAPAN20 = 913, /* Japan */ - CTRY_JAPAN21 = 914, /* Japan */ - CTRY_JAPAN22 = 915, /* Japan */ - CTRY_JAPAN23 = 916, /* Japan */ - CTRY_JAPAN24 = 917, /* Japan */ - CTRY_JAPAN25 = 918, /* Japan */ - CTRY_JAPAN26 = 919, /* Japan */ - CTRY_JAPAN27 = 920, /* Japan */ - CTRY_JAPAN28 = 921, /* Japan */ - CTRY_JAPAN29 = 922, /* Japan */ - CTRY_JAPAN30 = 923, /* Japan */ - CTRY_JAPAN31 = 924, /* Japan */ - CTRY_JAPAN32 = 925, /* Japan */ - CTRY_JAPAN33 = 926, /* Japan */ - CTRY_JAPAN34 = 927, /* Japan */ - CTRY_JAPAN35 = 928, /* Japan */ - CTRY_JAPAN36 = 929, /* Japan */ - CTRY_JAPAN37 = 930, /* Japan */ - CTRY_JAPAN38 = 931, /* Japan */ - CTRY_JAPAN39 = 932, /* Japan */ - CTRY_JAPAN40 = 933, /* Japan */ - CTRY_JAPAN41 = 934, /* Japan */ - CTRY_JAPAN42 = 935, /* Japan */ - CTRY_JAPAN43 = 936, /* Japan */ - CTRY_JAPAN44 = 937, /* Japan */ - CTRY_JAPAN45 = 938, /* Japan */ - CTRY_JAPAN46 = 939, /* Japan */ - CTRY_JAPAN47 = 940, /* Japan */ - CTRY_JAPAN48 = 941, /* Japan */ - CTRY_JORDAN = 400, /* Jordan */ - CTRY_KAZAKHSTAN = 398, /* Kazakhstan */ - CTRY_KENYA = 404, /* Kenya */ - CTRY_KOREA_NORTH = 408, /* North Korea */ - CTRY_KOREA_ROC = 410, /* South Korea */ - CTRY_KOREA_ROC2 = 411, /* South Korea */ - CTRY_KUWAIT = 414, /* Kuwait */ - CTRY_LATVIA = 428, /* Latvia */ - CTRY_LEBANON = 422, /* Lebanon */ - CTRY_LIBYA = 434, /* Libya */ - CTRY_LIECHTENSTEIN = 438, /* Liechtenstein */ - CTRY_LITHUANIA = 440, /* Lithuania */ - CTRY_LUXEMBOURG = 442, /* Luxembourg */ - CTRY_MACAU = 446, /* Macau */ - CTRY_MACEDONIA = 807, /* the Former Yugoslav Republic of Macedonia */ - CTRY_MALAYSIA = 458, /* Malaysia */ - CTRY_MEXICO = 484, /* Mexico */ - CTRY_MONACO = 492, /* Principality of Monaco */ - CTRY_MOROCCO = 504, /* Morocco */ - CTRY_NETHERLANDS = 528, /* Netherlands */ - CTRY_NEW_ZEALAND = 554, /* New Zealand */ - CTRY_NICARAGUA = 558, /* Nicaragua */ - CTRY_NORWAY = 578, /* Norway */ - CTRY_OMAN = 512, /* Oman */ - CTRY_PAKISTAN = 586, /* Islamic Republic of Pakistan */ - CTRY_PANAMA = 591, /* Panama */ - CTRY_PARAGUAY = 600, /* Paraguay */ - CTRY_PERU = 604, /* Peru */ - CTRY_PHILIPPINES = 608, /* Republic of the Philippines */ - CTRY_POLAND = 616, /* Poland */ - CTRY_PORTUGAL = 620, /* Portugal */ - CTRY_PUERTO_RICO = 630, /* Puerto Rico */ - CTRY_QATAR = 634, /* Qatar */ - CTRY_ROMANIA = 642, /* Romania */ - CTRY_RUSSIA = 643, /* Russia */ - CTRY_SAUDI_ARABIA = 682, /* Saudi Arabia */ - CTRY_SINGAPORE = 702, /* Singapore */ - CTRY_SLOVAKIA = 703, /* Slovak Republic */ - CTRY_SLOVENIA = 705, /* Slovenia */ - CTRY_SOUTH_AFRICA = 710, /* South Africa */ - CTRY_SPAIN = 724, /* Spain */ - CTRY_SWEDEN = 752, /* Sweden */ - CTRY_SWITZERLAND = 756, /* Switzerland */ - CTRY_SYRIA = 760, /* Syria */ - CTRY_TAIWAN = 158, /* Taiwan */ - CTRY_THAILAND = 764, /* Thailand */ - CTRY_TRINIDAD_Y_TOBAGO = 780, /* Trinidad y Tobago */ - CTRY_TUNISIA = 788, /* Tunisia */ - CTRY_TURKEY = 792, /* Turkey */ - CTRY_UAE = 784, /* U.A.E. */ - CTRY_UKRAINE = 804, /* Ukraine */ - CTRY_UNITED_KINGDOM = 826, /* United Kingdom */ - CTRY_UNITED_STATES = 840, /* United States */ - CTRY_UNITED_STATES_FCC49 = 842, /* United States (Public Safety)*/ - CTRY_URUGUAY = 858, /* Uruguay */ - CTRY_UZBEKISTAN = 860, /* Uzbekistan */ - CTRY_VENEZUELA = 862, /* Venezuela */ - CTRY_VIET_NAM = 704, /* Viet Nam */ - CTRY_YEMEN = 887, /* Yemen */ - CTRY_ZIMBABWE = 716 /* Zimbabwe */ -}; - - #endif |