Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 1 | /* |
Sujith | cee075a | 2009-03-13 09:07:23 +0530 | [diff] [blame] | 2 | * Copyright (c) 2008-2009 Atheros Communications Inc. |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #ifndef REGD_COMMON_H |
| 18 | #define REGD_COMMON_H |
| 19 | |
| 20 | enum EnumRd { |
| 21 | NO_ENUMRD = 0x00, |
| 22 | NULL1_WORLD = 0x03, |
| 23 | NULL1_ETSIB = 0x07, |
| 24 | NULL1_ETSIC = 0x08, |
| 25 | FCC1_FCCA = 0x10, |
| 26 | FCC1_WORLD = 0x11, |
| 27 | FCC4_FCCA = 0x12, |
| 28 | FCC5_FCCA = 0x13, |
| 29 | FCC6_FCCA = 0x14, |
| 30 | |
| 31 | FCC2_FCCA = 0x20, |
| 32 | FCC2_WORLD = 0x21, |
| 33 | FCC2_ETSIC = 0x22, |
| 34 | FCC6_WORLD = 0x23, |
| 35 | FRANCE_RES = 0x31, |
| 36 | FCC3_FCCA = 0x3A, |
| 37 | FCC3_WORLD = 0x3B, |
| 38 | |
| 39 | ETSI1_WORLD = 0x37, |
| 40 | ETSI3_ETSIA = 0x32, |
| 41 | ETSI2_WORLD = 0x35, |
| 42 | ETSI3_WORLD = 0x36, |
| 43 | ETSI4_WORLD = 0x30, |
| 44 | ETSI4_ETSIC = 0x38, |
| 45 | ETSI5_WORLD = 0x39, |
| 46 | ETSI6_WORLD = 0x34, |
| 47 | ETSI_RESERVED = 0x33, |
| 48 | |
| 49 | MKK1_MKKA = 0x40, |
| 50 | MKK1_MKKB = 0x41, |
| 51 | APL4_WORLD = 0x42, |
| 52 | MKK2_MKKA = 0x43, |
| 53 | APL_RESERVED = 0x44, |
| 54 | APL2_WORLD = 0x45, |
| 55 | APL2_APLC = 0x46, |
| 56 | APL3_WORLD = 0x47, |
| 57 | MKK1_FCCA = 0x48, |
| 58 | APL2_APLD = 0x49, |
| 59 | MKK1_MKKA1 = 0x4A, |
| 60 | MKK1_MKKA2 = 0x4B, |
| 61 | MKK1_MKKC = 0x4C, |
| 62 | |
| 63 | APL3_FCCA = 0x50, |
| 64 | APL1_WORLD = 0x52, |
| 65 | APL1_FCCA = 0x53, |
| 66 | APL1_APLA = 0x54, |
| 67 | APL1_ETSIC = 0x55, |
| 68 | APL2_ETSIC = 0x56, |
| 69 | APL5_WORLD = 0x58, |
| 70 | APL6_WORLD = 0x5B, |
| 71 | APL7_FCCA = 0x5C, |
| 72 | APL8_WORLD = 0x5D, |
| 73 | APL9_WORLD = 0x5E, |
| 74 | |
| 75 | WOR0_WORLD = 0x60, |
| 76 | WOR1_WORLD = 0x61, |
| 77 | WOR2_WORLD = 0x62, |
| 78 | WOR3_WORLD = 0x63, |
| 79 | WOR4_WORLD = 0x64, |
| 80 | WOR5_ETSIC = 0x65, |
| 81 | |
| 82 | WOR01_WORLD = 0x66, |
| 83 | WOR02_WORLD = 0x67, |
| 84 | EU1_WORLD = 0x68, |
| 85 | |
| 86 | WOR9_WORLD = 0x69, |
| 87 | WORA_WORLD = 0x6A, |
| 88 | WORB_WORLD = 0x6B, |
| 89 | |
| 90 | MKK3_MKKB = 0x80, |
| 91 | MKK3_MKKA2 = 0x81, |
| 92 | MKK3_MKKC = 0x82, |
| 93 | |
| 94 | MKK4_MKKB = 0x83, |
| 95 | MKK4_MKKA2 = 0x84, |
| 96 | MKK4_MKKC = 0x85, |
| 97 | |
| 98 | MKK5_MKKB = 0x86, |
| 99 | MKK5_MKKA2 = 0x87, |
| 100 | MKK5_MKKC = 0x88, |
| 101 | |
| 102 | MKK6_MKKB = 0x89, |
| 103 | MKK6_MKKA2 = 0x8A, |
| 104 | MKK6_MKKC = 0x8B, |
| 105 | |
| 106 | MKK7_MKKB = 0x8C, |
| 107 | MKK7_MKKA2 = 0x8D, |
| 108 | MKK7_MKKC = 0x8E, |
| 109 | |
| 110 | MKK8_MKKB = 0x8F, |
| 111 | MKK8_MKKA2 = 0x90, |
| 112 | MKK8_MKKC = 0x91, |
| 113 | |
| 114 | MKK14_MKKA1 = 0x92, |
| 115 | MKK15_MKKA1 = 0x93, |
| 116 | |
| 117 | MKK10_FCCA = 0xD0, |
| 118 | MKK10_MKKA1 = 0xD1, |
| 119 | MKK10_MKKC = 0xD2, |
| 120 | MKK10_MKKA2 = 0xD3, |
| 121 | |
| 122 | MKK11_MKKA = 0xD4, |
| 123 | MKK11_FCCA = 0xD5, |
| 124 | MKK11_MKKA1 = 0xD6, |
| 125 | MKK11_MKKC = 0xD7, |
| 126 | MKK11_MKKA2 = 0xD8, |
| 127 | |
| 128 | MKK12_MKKA = 0xD9, |
| 129 | MKK12_FCCA = 0xDA, |
| 130 | MKK12_MKKA1 = 0xDB, |
| 131 | MKK12_MKKC = 0xDC, |
| 132 | MKK12_MKKA2 = 0xDD, |
| 133 | |
| 134 | MKK13_MKKB = 0xDE, |
| 135 | |
| 136 | MKK3_MKKA = 0xF0, |
| 137 | MKK3_MKKA1 = 0xF1, |
| 138 | MKK3_FCCA = 0xF2, |
| 139 | MKK4_MKKA = 0xF3, |
| 140 | MKK4_MKKA1 = 0xF4, |
| 141 | MKK4_FCCA = 0xF5, |
| 142 | MKK9_MKKA = 0xF6, |
| 143 | MKK10_MKKA = 0xF7, |
| 144 | MKK6_MKKA1 = 0xF8, |
| 145 | MKK6_FCCA = 0xF9, |
| 146 | MKK7_MKKA1 = 0xFA, |
| 147 | MKK7_FCCA = 0xFB, |
| 148 | MKK9_FCCA = 0xFC, |
| 149 | MKK9_MKKA1 = 0xFD, |
| 150 | MKK9_MKKC = 0xFE, |
| 151 | MKK9_MKKA2 = 0xFF, |
| 152 | |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 153 | WORLD = 0x0199, |
| 154 | DEBUG_REG_DMN = 0x01ff, |
| 155 | }; |
| 156 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 157 | /* Regpair to CTL band mapping */ |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 158 | static struct reg_dmn_pair_mapping regDomainPairs[] = { |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 159 | /* regpair, 5 GHz CTL, 2 GHz CTL */ |
| 160 | {NO_ENUMRD, DEBUG_REG_DMN, DEBUG_REG_DMN}, |
| 161 | {NULL1_WORLD, NO_CTL, CTL_ETSI}, |
| 162 | {NULL1_ETSIB, NO_CTL, CTL_ETSI}, |
| 163 | {NULL1_ETSIC, NO_CTL, CTL_ETSI}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 164 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 165 | {FCC2_FCCA, CTL_FCC, CTL_FCC}, |
| 166 | {FCC2_WORLD, CTL_FCC, CTL_ETSI}, |
| 167 | {FCC2_ETSIC, CTL_FCC, CTL_ETSI}, |
| 168 | {FCC3_FCCA, CTL_FCC, CTL_FCC}, |
| 169 | {FCC3_WORLD, CTL_FCC, CTL_ETSI}, |
| 170 | {FCC4_FCCA, CTL_FCC, CTL_FCC}, |
| 171 | {FCC5_FCCA, CTL_FCC, CTL_FCC}, |
| 172 | {FCC6_FCCA, CTL_FCC, CTL_FCC}, |
| 173 | {FCC6_WORLD, CTL_FCC, CTL_ETSI}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 174 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 175 | {ETSI1_WORLD, CTL_ETSI, CTL_ETSI}, |
| 176 | {ETSI2_WORLD, CTL_ETSI, CTL_ETSI}, |
| 177 | {ETSI3_WORLD, CTL_ETSI, CTL_ETSI}, |
| 178 | {ETSI4_WORLD, CTL_ETSI, CTL_ETSI}, |
| 179 | {ETSI5_WORLD, CTL_ETSI, CTL_ETSI}, |
| 180 | {ETSI6_WORLD, CTL_ETSI, CTL_ETSI}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 181 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 182 | /* XXX: For ETSI3_ETSIA, Was NO_CTL meant for the 2 GHz band ? */ |
| 183 | {ETSI3_ETSIA, CTL_ETSI, CTL_ETSI}, |
| 184 | {FRANCE_RES, CTL_ETSI, CTL_ETSI}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 185 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 186 | {FCC1_WORLD, CTL_FCC, CTL_ETSI}, |
| 187 | {FCC1_FCCA, CTL_FCC, CTL_FCC}, |
| 188 | {APL1_WORLD, CTL_FCC, CTL_ETSI}, |
| 189 | {APL2_WORLD, CTL_FCC, CTL_ETSI}, |
| 190 | {APL3_WORLD, CTL_FCC, CTL_ETSI}, |
| 191 | {APL4_WORLD, CTL_FCC, CTL_ETSI}, |
| 192 | {APL5_WORLD, CTL_FCC, CTL_ETSI}, |
| 193 | {APL6_WORLD, CTL_ETSI, CTL_ETSI}, |
| 194 | {APL8_WORLD, CTL_ETSI, CTL_ETSI}, |
| 195 | {APL9_WORLD, CTL_ETSI, CTL_ETSI}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 196 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 197 | {APL3_FCCA, CTL_FCC, CTL_FCC}, |
Christian Lamparter | bd39a27 | 2011-04-06 20:40:31 +0200 | [diff] [blame^] | 198 | {APL7_FCCA, CTL_FCC, CTL_FCC}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 199 | {APL1_ETSIC, CTL_FCC, CTL_ETSI}, |
| 200 | {APL2_ETSIC, CTL_FCC, CTL_ETSI}, |
| 201 | {APL2_APLD, CTL_FCC, NO_CTL}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 202 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 203 | {MKK1_MKKA, CTL_MKK, CTL_MKK}, |
| 204 | {MKK1_MKKB, CTL_MKK, CTL_MKK}, |
| 205 | {MKK1_FCCA, CTL_MKK, CTL_FCC}, |
| 206 | {MKK1_MKKA1, CTL_MKK, CTL_MKK}, |
| 207 | {MKK1_MKKA2, CTL_MKK, CTL_MKK}, |
| 208 | {MKK1_MKKC, CTL_MKK, CTL_MKK}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 209 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 210 | {MKK2_MKKA, CTL_MKK, CTL_MKK}, |
| 211 | {MKK3_MKKA, CTL_MKK, CTL_MKK}, |
| 212 | {MKK3_MKKB, CTL_MKK, CTL_MKK}, |
| 213 | {MKK3_MKKA1, CTL_MKK, CTL_MKK}, |
| 214 | {MKK3_MKKA2, CTL_MKK, CTL_MKK}, |
| 215 | {MKK3_MKKC, CTL_MKK, CTL_MKK}, |
| 216 | {MKK3_FCCA, CTL_MKK, CTL_FCC}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 217 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 218 | {MKK4_MKKA, CTL_MKK, CTL_MKK}, |
| 219 | {MKK4_MKKB, CTL_MKK, CTL_MKK}, |
| 220 | {MKK4_MKKA1, CTL_MKK, CTL_MKK}, |
| 221 | {MKK4_MKKA2, CTL_MKK, CTL_MKK}, |
| 222 | {MKK4_MKKC, CTL_MKK, CTL_MKK}, |
| 223 | {MKK4_FCCA, CTL_MKK, CTL_FCC}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 224 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 225 | {MKK5_MKKB, CTL_MKK, CTL_MKK}, |
| 226 | {MKK5_MKKA2, CTL_MKK, CTL_MKK}, |
| 227 | {MKK5_MKKC, CTL_MKK, CTL_MKK}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 228 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 229 | {MKK6_MKKB, CTL_MKK, CTL_MKK}, |
| 230 | {MKK6_MKKA1, CTL_MKK, CTL_MKK}, |
| 231 | {MKK6_MKKA2, CTL_MKK, CTL_MKK}, |
| 232 | {MKK6_MKKC, CTL_MKK, CTL_MKK}, |
| 233 | {MKK6_FCCA, CTL_MKK, CTL_FCC}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 234 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 235 | {MKK7_MKKB, CTL_MKK, CTL_MKK}, |
| 236 | {MKK7_MKKA1, CTL_MKK, CTL_MKK}, |
| 237 | {MKK7_MKKA2, CTL_MKK, CTL_MKK}, |
| 238 | {MKK7_MKKC, CTL_MKK, CTL_MKK}, |
| 239 | {MKK7_FCCA, CTL_MKK, CTL_FCC}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 240 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 241 | {MKK8_MKKB, CTL_MKK, CTL_MKK}, |
| 242 | {MKK8_MKKA2, CTL_MKK, CTL_MKK}, |
| 243 | {MKK8_MKKC, CTL_MKK, CTL_MKK}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 244 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 245 | {MKK9_MKKA, CTL_MKK, CTL_MKK}, |
| 246 | {MKK9_FCCA, CTL_MKK, CTL_FCC}, |
| 247 | {MKK9_MKKA1, CTL_MKK, CTL_MKK}, |
| 248 | {MKK9_MKKA2, CTL_MKK, CTL_MKK}, |
| 249 | {MKK9_MKKC, CTL_MKK, CTL_MKK}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 250 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 251 | {MKK10_MKKA, CTL_MKK, CTL_MKK}, |
| 252 | {MKK10_FCCA, CTL_MKK, CTL_FCC}, |
| 253 | {MKK10_MKKA1, CTL_MKK, CTL_MKK}, |
| 254 | {MKK10_MKKA2, CTL_MKK, CTL_MKK}, |
| 255 | {MKK10_MKKC, CTL_MKK, CTL_MKK}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 256 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 257 | {MKK11_MKKA, CTL_MKK, CTL_MKK}, |
| 258 | {MKK11_FCCA, CTL_MKK, CTL_FCC}, |
| 259 | {MKK11_MKKA1, CTL_MKK, CTL_MKK}, |
| 260 | {MKK11_MKKA2, CTL_MKK, CTL_MKK}, |
| 261 | {MKK11_MKKC, CTL_MKK, CTL_MKK}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 262 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 263 | {MKK12_MKKA, CTL_MKK, CTL_MKK}, |
| 264 | {MKK12_FCCA, CTL_MKK, CTL_FCC}, |
| 265 | {MKK12_MKKA1, CTL_MKK, CTL_MKK}, |
| 266 | {MKK12_MKKA2, CTL_MKK, CTL_MKK}, |
| 267 | {MKK12_MKKC, CTL_MKK, CTL_MKK}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 268 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 269 | {MKK13_MKKB, CTL_MKK, CTL_MKK}, |
| 270 | {MKK14_MKKA1, CTL_MKK, CTL_MKK}, |
| 271 | {MKK15_MKKA1, CTL_MKK, CTL_MKK}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 272 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 273 | {WOR0_WORLD, NO_CTL, NO_CTL}, |
| 274 | {WOR1_WORLD, NO_CTL, NO_CTL}, |
| 275 | {WOR2_WORLD, NO_CTL, NO_CTL}, |
| 276 | {WOR3_WORLD, NO_CTL, NO_CTL}, |
| 277 | {WOR4_WORLD, NO_CTL, NO_CTL}, |
| 278 | {WOR5_ETSIC, NO_CTL, NO_CTL}, |
| 279 | {WOR01_WORLD, NO_CTL, NO_CTL}, |
| 280 | {WOR02_WORLD, NO_CTL, NO_CTL}, |
| 281 | {EU1_WORLD, NO_CTL, NO_CTL}, |
| 282 | {WOR9_WORLD, NO_CTL, NO_CTL}, |
| 283 | {WORA_WORLD, NO_CTL, NO_CTL}, |
| 284 | {WORB_WORLD, NO_CTL, NO_CTL}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 285 | }; |
| 286 | |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 287 | static struct country_code_to_enum_rd allCountries[] = { |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 288 | {CTRY_DEBUG, NO_ENUMRD, "DB"}, |
| 289 | {CTRY_DEFAULT, FCC1_FCCA, "CO"}, |
| 290 | {CTRY_ALBANIA, NULL1_WORLD, "AL"}, |
| 291 | {CTRY_ALGERIA, NULL1_WORLD, "DZ"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 292 | {CTRY_ARGENTINA, FCC3_WORLD, "AR"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 293 | {CTRY_ARMENIA, ETSI4_WORLD, "AM"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 294 | {CTRY_ARUBA, ETSI1_WORLD, "AW"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 295 | {CTRY_AUSTRALIA, FCC2_WORLD, "AU"}, |
| 296 | {CTRY_AUSTRALIA2, FCC6_WORLD, "AU"}, |
| 297 | {CTRY_AUSTRIA, ETSI1_WORLD, "AT"}, |
| 298 | {CTRY_AZERBAIJAN, ETSI4_WORLD, "AZ"}, |
| 299 | {CTRY_BAHRAIN, APL6_WORLD, "BH"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 300 | {CTRY_BANGLADESH, NULL1_WORLD, "BD"}, |
| 301 | {CTRY_BARBADOS, FCC2_WORLD, "BB"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 302 | {CTRY_BELARUS, ETSI1_WORLD, "BY"}, |
| 303 | {CTRY_BELGIUM, ETSI1_WORLD, "BE"}, |
| 304 | {CTRY_BELGIUM2, ETSI4_WORLD, "BL"}, |
| 305 | {CTRY_BELIZE, APL1_ETSIC, "BZ"}, |
| 306 | {CTRY_BOLIVIA, APL1_ETSIC, "BO"}, |
| 307 | {CTRY_BOSNIA_HERZ, ETSI1_WORLD, "BA"}, |
| 308 | {CTRY_BRAZIL, FCC3_WORLD, "BR"}, |
| 309 | {CTRY_BRUNEI_DARUSSALAM, APL1_WORLD, "BN"}, |
| 310 | {CTRY_BULGARIA, ETSI6_WORLD, "BG"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 311 | {CTRY_CAMBODIA, ETSI1_WORLD, "KH"}, |
| 312 | {CTRY_CANADA, FCC3_FCCA, "CA"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 313 | {CTRY_CANADA2, FCC6_FCCA, "CA"}, |
| 314 | {CTRY_CHILE, APL6_WORLD, "CL"}, |
| 315 | {CTRY_CHINA, APL1_WORLD, "CN"}, |
| 316 | {CTRY_COLOMBIA, FCC1_FCCA, "CO"}, |
| 317 | {CTRY_COSTA_RICA, FCC1_WORLD, "CR"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 318 | {CTRY_CROATIA, ETSI1_WORLD, "HR"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 319 | {CTRY_CYPRUS, ETSI1_WORLD, "CY"}, |
| 320 | {CTRY_CZECH, ETSI3_WORLD, "CZ"}, |
| 321 | {CTRY_DENMARK, ETSI1_WORLD, "DK"}, |
| 322 | {CTRY_DOMINICAN_REPUBLIC, FCC1_FCCA, "DO"}, |
| 323 | {CTRY_ECUADOR, FCC1_WORLD, "EC"}, |
| 324 | {CTRY_EGYPT, ETSI3_WORLD, "EG"}, |
| 325 | {CTRY_EL_SALVADOR, FCC1_WORLD, "SV"}, |
| 326 | {CTRY_ESTONIA, ETSI1_WORLD, "EE"}, |
| 327 | {CTRY_FINLAND, ETSI1_WORLD, "FI"}, |
| 328 | {CTRY_FRANCE, ETSI1_WORLD, "FR"}, |
| 329 | {CTRY_GEORGIA, ETSI4_WORLD, "GE"}, |
| 330 | {CTRY_GERMANY, ETSI1_WORLD, "DE"}, |
| 331 | {CTRY_GREECE, ETSI1_WORLD, "GR"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 332 | {CTRY_GREENLAND, ETSI1_WORLD, "GL"}, |
| 333 | {CTRY_GRENEDA, FCC3_FCCA, "GD"}, |
| 334 | {CTRY_GUAM, FCC1_FCCA, "GU"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 335 | {CTRY_GUATEMALA, FCC1_FCCA, "GT"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 336 | {CTRY_HAITI, ETSI1_WORLD, "HT"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 337 | {CTRY_HONDURAS, NULL1_WORLD, "HN"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 338 | {CTRY_HONG_KONG, FCC3_WORLD, "HK"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 339 | {CTRY_HUNGARY, ETSI1_WORLD, "HU"}, |
| 340 | {CTRY_ICELAND, ETSI1_WORLD, "IS"}, |
| 341 | {CTRY_INDIA, APL6_WORLD, "IN"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 342 | {CTRY_INDONESIA, NULL1_WORLD, "ID"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 343 | {CTRY_IRAN, APL1_WORLD, "IR"}, |
| 344 | {CTRY_IRELAND, ETSI1_WORLD, "IE"}, |
| 345 | {CTRY_ISRAEL, NULL1_WORLD, "IL"}, |
| 346 | {CTRY_ITALY, ETSI1_WORLD, "IT"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 347 | {CTRY_JAMAICA, FCC3_WORLD, "JM"}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 348 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 349 | {CTRY_JAPAN, MKK1_MKKA, "JP"}, |
| 350 | {CTRY_JAPAN1, MKK1_MKKB, "JP"}, |
| 351 | {CTRY_JAPAN2, MKK1_FCCA, "JP"}, |
| 352 | {CTRY_JAPAN3, MKK2_MKKA, "JP"}, |
| 353 | {CTRY_JAPAN4, MKK1_MKKA1, "JP"}, |
| 354 | {CTRY_JAPAN5, MKK1_MKKA2, "JP"}, |
| 355 | {CTRY_JAPAN6, MKK1_MKKC, "JP"}, |
| 356 | {CTRY_JAPAN7, MKK3_MKKB, "JP"}, |
| 357 | {CTRY_JAPAN8, MKK3_MKKA2, "JP"}, |
| 358 | {CTRY_JAPAN9, MKK3_MKKC, "JP"}, |
| 359 | {CTRY_JAPAN10, MKK4_MKKB, "JP"}, |
| 360 | {CTRY_JAPAN11, MKK4_MKKA2, "JP"}, |
| 361 | {CTRY_JAPAN12, MKK4_MKKC, "JP"}, |
| 362 | {CTRY_JAPAN13, MKK5_MKKB, "JP"}, |
| 363 | {CTRY_JAPAN14, MKK5_MKKA2, "JP"}, |
| 364 | {CTRY_JAPAN15, MKK5_MKKC, "JP"}, |
| 365 | {CTRY_JAPAN16, MKK6_MKKB, "JP"}, |
| 366 | {CTRY_JAPAN17, MKK6_MKKA2, "JP"}, |
| 367 | {CTRY_JAPAN18, MKK6_MKKC, "JP"}, |
| 368 | {CTRY_JAPAN19, MKK7_MKKB, "JP"}, |
| 369 | {CTRY_JAPAN20, MKK7_MKKA2, "JP"}, |
| 370 | {CTRY_JAPAN21, MKK7_MKKC, "JP"}, |
| 371 | {CTRY_JAPAN22, MKK8_MKKB, "JP"}, |
| 372 | {CTRY_JAPAN23, MKK8_MKKA2, "JP"}, |
| 373 | {CTRY_JAPAN24, MKK8_MKKC, "JP"}, |
| 374 | {CTRY_JAPAN25, MKK3_MKKA, "JP"}, |
| 375 | {CTRY_JAPAN26, MKK3_MKKA1, "JP"}, |
| 376 | {CTRY_JAPAN27, MKK3_FCCA, "JP"}, |
| 377 | {CTRY_JAPAN28, MKK4_MKKA1, "JP"}, |
| 378 | {CTRY_JAPAN29, MKK4_FCCA, "JP"}, |
| 379 | {CTRY_JAPAN30, MKK6_MKKA1, "JP"}, |
| 380 | {CTRY_JAPAN31, MKK6_FCCA, "JP"}, |
| 381 | {CTRY_JAPAN32, MKK7_MKKA1, "JP"}, |
| 382 | {CTRY_JAPAN33, MKK7_FCCA, "JP"}, |
| 383 | {CTRY_JAPAN34, MKK9_MKKA, "JP"}, |
| 384 | {CTRY_JAPAN35, MKK10_MKKA, "JP"}, |
| 385 | {CTRY_JAPAN36, MKK4_MKKA, "JP"}, |
| 386 | {CTRY_JAPAN37, MKK9_FCCA, "JP"}, |
| 387 | {CTRY_JAPAN38, MKK9_MKKA1, "JP"}, |
| 388 | {CTRY_JAPAN39, MKK9_MKKC, "JP"}, |
| 389 | {CTRY_JAPAN40, MKK9_MKKA2, "JP"}, |
| 390 | {CTRY_JAPAN41, MKK10_FCCA, "JP"}, |
| 391 | {CTRY_JAPAN42, MKK10_MKKA1, "JP"}, |
| 392 | {CTRY_JAPAN43, MKK10_MKKC, "JP"}, |
| 393 | {CTRY_JAPAN44, MKK10_MKKA2, "JP"}, |
| 394 | {CTRY_JAPAN45, MKK11_MKKA, "JP"}, |
| 395 | {CTRY_JAPAN46, MKK11_FCCA, "JP"}, |
| 396 | {CTRY_JAPAN47, MKK11_MKKA1, "JP"}, |
| 397 | {CTRY_JAPAN48, MKK11_MKKC, "JP"}, |
| 398 | {CTRY_JAPAN49, MKK11_MKKA2, "JP"}, |
| 399 | {CTRY_JAPAN50, MKK12_MKKA, "JP"}, |
| 400 | {CTRY_JAPAN51, MKK12_FCCA, "JP"}, |
| 401 | {CTRY_JAPAN52, MKK12_MKKA1, "JP"}, |
| 402 | {CTRY_JAPAN53, MKK12_MKKC, "JP"}, |
| 403 | {CTRY_JAPAN54, MKK12_MKKA2, "JP"}, |
| 404 | {CTRY_JAPAN57, MKK13_MKKB, "JP"}, |
| 405 | {CTRY_JAPAN58, MKK14_MKKA1, "JP"}, |
| 406 | {CTRY_JAPAN59, MKK15_MKKA1, "JP"}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 407 | |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 408 | {CTRY_JORDAN, ETSI2_WORLD, "JO"}, |
| 409 | {CTRY_KAZAKHSTAN, NULL1_WORLD, "KZ"}, |
| 410 | {CTRY_KOREA_NORTH, APL9_WORLD, "KP"}, |
| 411 | {CTRY_KOREA_ROC, APL9_WORLD, "KR"}, |
| 412 | {CTRY_KOREA_ROC2, APL2_WORLD, "K2"}, |
| 413 | {CTRY_KOREA_ROC3, APL9_WORLD, "K3"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 414 | {CTRY_KUWAIT, ETSI3_WORLD, "KW"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 415 | {CTRY_LATVIA, ETSI1_WORLD, "LV"}, |
| 416 | {CTRY_LEBANON, NULL1_WORLD, "LB"}, |
| 417 | {CTRY_LIECHTENSTEIN, ETSI1_WORLD, "LI"}, |
| 418 | {CTRY_LITHUANIA, ETSI1_WORLD, "LT"}, |
| 419 | {CTRY_LUXEMBOURG, ETSI1_WORLD, "LU"}, |
| 420 | {CTRY_MACAU, FCC2_WORLD, "MO"}, |
| 421 | {CTRY_MACEDONIA, NULL1_WORLD, "MK"}, |
| 422 | {CTRY_MALAYSIA, APL8_WORLD, "MY"}, |
| 423 | {CTRY_MALTA, ETSI1_WORLD, "MT"}, |
| 424 | {CTRY_MEXICO, FCC1_FCCA, "MX"}, |
| 425 | {CTRY_MONACO, ETSI4_WORLD, "MC"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 426 | {CTRY_MOROCCO, APL4_WORLD, "MA"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 427 | {CTRY_NEPAL, APL1_WORLD, "NP"}, |
| 428 | {CTRY_NETHERLANDS, ETSI1_WORLD, "NL"}, |
| 429 | {CTRY_NETHERLANDS_ANTILLES, ETSI1_WORLD, "AN"}, |
| 430 | {CTRY_NEW_ZEALAND, FCC2_ETSIC, "NZ"}, |
| 431 | {CTRY_NORWAY, ETSI1_WORLD, "NO"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 432 | {CTRY_OMAN, FCC3_WORLD, "OM"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 433 | {CTRY_PAKISTAN, NULL1_WORLD, "PK"}, |
| 434 | {CTRY_PANAMA, FCC1_FCCA, "PA"}, |
| 435 | {CTRY_PAPUA_NEW_GUINEA, FCC1_WORLD, "PG"}, |
| 436 | {CTRY_PERU, APL1_WORLD, "PE"}, |
| 437 | {CTRY_PHILIPPINES, APL1_WORLD, "PH"}, |
| 438 | {CTRY_POLAND, ETSI1_WORLD, "PL"}, |
| 439 | {CTRY_PORTUGAL, ETSI1_WORLD, "PT"}, |
| 440 | {CTRY_PUERTO_RICO, FCC1_FCCA, "PR"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 441 | {CTRY_QATAR, APL1_WORLD, "QA"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 442 | {CTRY_ROMANIA, NULL1_WORLD, "RO"}, |
| 443 | {CTRY_RUSSIA, NULL1_WORLD, "RU"}, |
| 444 | {CTRY_SAUDI_ARABIA, NULL1_WORLD, "SA"}, |
| 445 | {CTRY_SERBIA_MONTENEGRO, ETSI1_WORLD, "CS"}, |
| 446 | {CTRY_SINGAPORE, APL6_WORLD, "SG"}, |
| 447 | {CTRY_SLOVAKIA, ETSI1_WORLD, "SK"}, |
| 448 | {CTRY_SLOVENIA, ETSI1_WORLD, "SI"}, |
| 449 | {CTRY_SOUTH_AFRICA, FCC3_WORLD, "ZA"}, |
| 450 | {CTRY_SPAIN, ETSI1_WORLD, "ES"}, |
| 451 | {CTRY_SRI_LANKA, FCC3_WORLD, "LK"}, |
| 452 | {CTRY_SWEDEN, ETSI1_WORLD, "SE"}, |
| 453 | {CTRY_SWITZERLAND, ETSI1_WORLD, "CH"}, |
| 454 | {CTRY_SYRIA, NULL1_WORLD, "SY"}, |
| 455 | {CTRY_TAIWAN, APL3_FCCA, "TW"}, |
Luis R. Rodriguez | 58d30d1 | 2009-07-22 10:41:14 -0700 | [diff] [blame] | 456 | {CTRY_THAILAND, FCC3_WORLD, "TH"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 457 | {CTRY_TRINIDAD_Y_TOBAGO, FCC3_WORLD, "TT"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 458 | {CTRY_TUNISIA, ETSI3_WORLD, "TN"}, |
| 459 | {CTRY_TURKEY, ETSI3_WORLD, "TR"}, |
| 460 | {CTRY_UKRAINE, NULL1_WORLD, "UA"}, |
| 461 | {CTRY_UAE, NULL1_WORLD, "AE"}, |
| 462 | {CTRY_UNITED_KINGDOM, ETSI1_WORLD, "GB"}, |
| 463 | {CTRY_UNITED_STATES, FCC3_FCCA, "US"}, |
| 464 | /* This "PS" is for US public safety actually... to support this we |
| 465 | * would need to assign new special alpha2 to CRDA db as with the world |
| 466 | * regdomain and use another alpha2 */ |
| 467 | {CTRY_UNITED_STATES_FCC49, FCC4_FCCA, "PS"}, |
Vivek Natarajan | bd6b444 | 2009-10-27 11:32:52 +0530 | [diff] [blame] | 468 | {CTRY_URUGUAY, FCC3_WORLD, "UY"}, |
Luis R. Rodriguez | 5f8e077 | 2009-01-22 15:16:48 -0800 | [diff] [blame] | 469 | {CTRY_UZBEKISTAN, FCC3_FCCA, "UZ"}, |
| 470 | {CTRY_VENEZUELA, APL2_ETSIC, "VE"}, |
| 471 | {CTRY_VIET_NAM, NULL1_WORLD, "VN"}, |
| 472 | {CTRY_YEMEN, NULL1_WORLD, "YE"}, |
| 473 | {CTRY_ZIMBABWE, NULL1_WORLD, "ZW"}, |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 474 | }; |
| 475 | |
Luis R. Rodriguez | f078f20 | 2008-08-04 00:16:41 -0700 | [diff] [blame] | 476 | #endif |