Lines Matching refs:country
79 * Country/Region Codes
484 uint16_t singleCC; /* Country code of single country if
1504 /* Defined here to use when 2G channels are authorised for country K2 */
1944 static HAL_BOOL getWmRD(struct ath_hal *ah, COUNTRY_CODE_TO_ENUM_RD *country, uint16_t channelFlag, REG_DOMAIN *rd);
1970 * Return whether or not the regulatory domain/country in EEPROM
1990 "%s: invalid regulatory domain/country code 0x%x\n", __func__, rd);
1995 * Returns whether or not the specified country code
2015 /* EEP setting is a country - config shall match */
2017 "%s: EEPROM setting is country code %u\n", __func__,
2046 * capabilities and the specified country code and reg domain.
2050 const COUNTRY_CODE_TO_ENUM_RD *country, const REG_DOMAIN *rd5GHz)
2065 __func__, modesAvail, country->countryCode, country->regDmnEnum);
2067 /* Check country regulations for allowed modes */
2068 if (!country->allow11g && (modesAvail & HAL_MODE_11G_ALL)) {
2080 !country->allow11aTurbo) {
2085 if ((modesAvail & HAL_MODE_11G_TURBO) && !country->allow11gTurbo) {
2092 if ((modesAvail & HAL_MODE_11NG_HT20) && !country->allow11ng20) {
2097 if ((modesAvail & HAL_MODE_11NA_HT20) && !country->allow11na20) {
2102 if ((modesAvail & HAL_MODE_11NG_HT40PLUS) && !country->allow11ng40) {
2107 if ((modesAvail & HAL_MODE_11NG_HT40MINUS) && !country->allow11ng40) {
2112 if ((modesAvail & HAL_MODE_11NA_HT40PLUS) && !country->allow11na40) {
2117 if ((modesAvail & HAL_MODE_11NA_HT40MINUS) && !country->allow11na40) {
2130 * capabilities and the specified country code.
2136 COUNTRY_CODE_TO_ENUM_RD *country = AH_NULL;
2140 country = findCountry(cc);
2141 if (country != AH_NULL) {
2142 if (getWmRD(ah, country, ~CHANNEL_2GHZ, &rd))
2143 mode = ath_hal_getwmodesnreg(ah, country, &rd);
2196 * Find the pointer to the country element in the country table
2197 * corresponding to the country code
2212 * Calculate a default country based on the EEPROM setting.
2222 COUNTRY_CODE_TO_ENUM_RD *country = AH_NULL;
2225 country = findCountry(cc);
2226 if (country != AH_NULL)
2230 * Check reg domains that have only one country
2275 * on the country code and the wireless mode.
2278 getWmRD(struct ath_hal *ah, COUNTRY_CODE_TO_ENUM_RD *country,
2285 if (country->countryCode == CTRY_DEFAULT) {
2293 regDmn = country->regDmnEnum;
2295 regDmn = country->regDmnEnum;
2297 regDmn = country->regDmnEnum;
2331 if ((country->regDmnEnum & MULTI_DOMAIN_MASK) == 0 &&
2338 country->regDmnEnum);
2379 * any supplied country code. Note that we also do a bunch of EEPROM
2395 COUNTRY_CODE_TO_ENUM_RD *country = AH_NULL;
2412 * invalid regulatory domain/country code setting.
2425 * We now have enough state to validate any country code
2429 /* NB: Atheros silently ignores invalid country codes */
2431 "%s: invalid country code %d\n", __func__, cc);
2439 /* Get pointers to the country element and the reg domain elements */
2440 country = findCountry(AH_PRIVATE(ah)->ah_countryCode);
2442 if (country == AH_NULL) {
2443 HALDEBUG(ah, HAL_DEBUG_REGDOMAIN, "NULL Country!, cc= %d\n",
2448 if (!getWmRD(ah, country, ~CHANNEL_2GHZ, &rd5GHz)) {
2450 "%s: no unitary 5GHz regdomain for country %u\n",
2454 if (!getWmRD(ah, country, CHANNEL_2GHZ, &rd2GHz)) {
2456 "%s: no unitary 2GHz regdomain for country %u\n",
2461 modesAvail = ath_hal_getwmodesnreg(ah, country, &rd5GHz);
2462 maxChan = !enableOutdoor ? country->outdoorChanStart : 7000;
2795 /* Special CTL to signify WWR SKU without a known country */