Home
last modified time | relevance | path

Searched refs:alpha2 (Results 1 – 25 of 29) sorted by relevance

12

/drivers/net/wireless/realtek/rtlwifi/
Dregd.c82 .alpha2 = "99",
90 .alpha2 = "99",
99 .alpha2 = "99",
109 .alpha2 = "99",
119 .alpha2 = "99",
130 .alpha2 = "99",
141 .alpha2 = "99",
451 rtlpriv->regd.alpha2[0] = country->iso_name[0]; in rtl_regd_init()
452 rtlpriv->regd.alpha2[1] = country->iso_name[1]; in rtl_regd_init()
454 rtlpriv->regd.alpha2[0] = '0'; in rtl_regd_init()
[all …]
/drivers/net/wireless/ath/
Dregd.c68 .alpha2 = "99",
78 .alpha2 = "99",
89 .alpha2 = "99",
99 .alpha2 = "99",
109 .alpha2 = "99",
457 static u16 ath_regd_find_country_by_name(char *alpha2) in ath_regd_find_country_by_name() argument
462 if (!memcmp(allCountries[i].isoName, alpha2, 2)) in ath_regd_find_country_by_name()
479 country_code = ath_regd_find_country_by_name(request->alpha2); in __ath_reg_dyn_country()
740 reg->alpha2[0] = country->isoName[0]; in __ath_regd_init()
741 reg->alpha2[1] = country->isoName[1]; in __ath_regd_init()
[all …]
Dath.h83 char alpha2[2]; member
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c77 .alpha2 = "X2",
207 if (!strncmp(regdom, cntry_locales[i].regdomain->alpha2, len)) { in brcms_world_regd()
331 const char *ccode = sprom->alpha2; in brcms_c_channel_mgr_attach()
332 int ccode_len = sizeof(sprom->alpha2); in brcms_c_channel_mgr_attach()
352 ccode = wlc_cm->world_regd->regdomain->alpha2; in brcms_c_channel_mgr_attach()
732 wlc->pub->unit, __func__, request->alpha2); in brcms_reg_notifier()
737 brcms_c_japan_ccode(request->alpha2)); in brcms_reg_notifier()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dnvm.c661 iwl_mvm_update_mcc(struct iwl_mvm *mvm, const char *alpha2, in iwl_mvm_update_mcc() argument
665 .mcc = cpu_to_le16(alpha2[0] << 8 | alpha2[1]), in iwl_mvm_update_mcc()
691 alpha2[0], alpha2[1], src_id); in iwl_mvm_update_mcc()
Dmac80211.c310 const char *alpha2, in iwl_mvm_get_regdomain() argument
319 IWL_DEBUG_LAR(mvm, "Getting regdomain data for %s from FW\n", alpha2); in iwl_mvm_get_regdomain()
323 resp = iwl_mvm_update_mcc(mvm, alpha2, src_id); in iwl_mvm_get_regdomain()
347 regd->alpha2, regd->alpha2[0], regd->alpha2[1], src_id); in iwl_mvm_get_regdomain()
404 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, r->alpha2, used_src, in iwl_mvm_init_fw_regd()
Dmvm.h1721 iwl_mvm_update_mcc(struct iwl_mvm *mvm, const char *alpha2,
1727 const char *alpha2,
/drivers/net/wireless/zydas/zd1211rw/
Dzd_mac.c36 char alpha2[2]; member
147 static int zd_reg2alpha2(u8 regdomain, char *alpha2) in zd_reg2alpha2() argument
154 alpha2[0] = reg_map->alpha2[0]; in zd_reg2alpha2()
155 alpha2[1] = reg_map->alpha2[1]; in zd_reg2alpha2()
198 char alpha2[2]; in zd_mac_init_hw() local
223 r = zd_reg2alpha2(mac->regdomain, alpha2); in zd_mac_init_hw()
227 r = regulatory_hint(hw->wiphy, alpha2); in zd_mac_init_hw()
/drivers/ssb/
Dpci.c415 SPEX(alpha2[0], SSB_SPROM1_CCODE, 0xff00, 8); in sprom_extract_r123()
416 SPEX(alpha2[1], SSB_SPROM1_CCODE, 0x00ff, 0); in sprom_extract_r123()
496 SPEX(alpha2[0], SSB_SPROM4_CCODE, 0xff00, 8); in sprom_extract_r45()
497 SPEX(alpha2[1], SSB_SPROM4_CCODE, 0x00ff, 0); in sprom_extract_r45()
503 SPEX(alpha2[0], SSB_SPROM5_CCODE, 0xff00, 8); in sprom_extract_r45()
504 SPEX(alpha2[1], SSB_SPROM5_CCODE, 0x00ff, 0); in sprom_extract_r45()
612 SPEX(alpha2[0], SSB_SPROM8_CCODE, 0xff00, 8); in sprom_extract_r8()
613 SPEX(alpha2[1], SSB_SPROM8_CCODE, 0x00ff, 0); in sprom_extract_r8()
/drivers/net/wireless/intersil/p54/
Deeprom.h109 u8 alpha2[2]; member
Deeprom.c655 regulatory_hint(dev->wiphy, country->alpha2); in p54_parse_default_country()
/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c615 request->alpha2[0], request->alpha2[1]); in mwifiex_reg_notifier()
631 if (strncmp(request->alpha2, "00", 2) && in mwifiex_reg_notifier()
632 strncmp(request->alpha2, adapter->country_code, in mwifiex_reg_notifier()
633 sizeof(request->alpha2))) { in mwifiex_reg_notifier()
634 memcpy(adapter->country_code, request->alpha2, in mwifiex_reg_notifier()
635 sizeof(request->alpha2)); in mwifiex_reg_notifier()
4168 static bool mwifiex_is_valid_alpha2(const char *alpha2) in mwifiex_is_valid_alpha2() argument
4170 if (!alpha2 || strlen(alpha2) != 2) in mwifiex_is_valid_alpha2()
4173 if (isalpha(alpha2[0]) && isalpha(alpha2[1])) in mwifiex_is_valid_alpha2()
Dsta_cmdresp.c1108 regd->alpha2[0] = '9'; in mwifiex_create_custom_regdomain()
1109 regd->alpha2[1] = '9'; in mwifiex_create_custom_regdomain()
/drivers/bcma/
Dsprom.c281 SPEX(alpha2[0], SSB_SPROM8_CCODE, 0xff00, 8); in bcma_sprom_extract_r8()
282 SPEX(alpha2[1], SSB_SPROM8_CCODE, 0x00ff, 0); in bcma_sprom_extract_r8()
/drivers/net/wireless/
Dmac80211_hwsim.c151 .alpha2 = "99",
162 .alpha2 = "99",
515 char alpha2[2]; member
2649 data->alpha2[0] = param->reg_alpha2[0]; in mac80211_hwsim_new_radio()
2650 data->alpha2[1] = param->reg_alpha2[1]; in mac80211_hwsim_new_radio()
2750 if (data->alpha2[0] && data->alpha2[1]) in mac80211_hwsim_get_radio()
2751 param.reg_alpha2 = data->alpha2; in mac80211_hwsim_get_radio()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c202 .alpha2 = "99",
6736 static s32 brcmf_translate_country_code(struct brcmf_pub *drvr, char alpha2[2], in brcmf_translate_country_code()
6750 if ((alpha2[0] == ccreq->country_abbrev[0]) && in brcmf_translate_country_code()
6751 (alpha2[1] == ccreq->country_abbrev[1])) { in brcmf_translate_country_code()
6761 if ((cc->iso3166[0] == alpha2[0]) && in brcmf_translate_country_code()
6762 (cc->iso3166[1] == alpha2[1])) { in brcmf_translate_country_code()
6775 ccreq->country_abbrev[0] = alpha2[0]; in brcmf_translate_country_code()
6776 ccreq->country_abbrev[1] = alpha2[1]; in brcmf_translate_country_code()
6792 for (i = 0; i < sizeof(req->alpha2); i++) in brcmf_cfg80211_reg_notifier()
6793 if (req->alpha2[i] < 'A' || req->alpha2[i] > 'Z') { in brcmf_cfg80211_reg_notifier()
[all …]
/drivers/net/wireless/marvell/libertas/
Dcfg.c2175 "callback for domain %c%c\n", request->alpha2[0], in lbs_reg_notifier()
2176 request->alpha2[1]); in lbs_reg_notifier()
2178 memcpy(priv->country_code, request->alpha2, sizeof(request->alpha2)); in lbs_reg_notifier()
/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c946 regd->alpha2[0] = fw_mcc >> 8; in iwl_parse_nvm_mcc_info()
947 regd->alpha2[1] = fw_mcc & 0xff; in iwl_parse_nvm_mcc_info()
/drivers/net/wireless/ath/ath6kl/
Dwmi.c992 char alpha2[2]; in ath6kl_wmi_regdomain_event() local
1012 alpha2[0] = country->isoName[0]; in ath6kl_wmi_regdomain_event()
1013 alpha2[1] = country->isoName[1]; in ath6kl_wmi_regdomain_event()
1015 regulatory_hint(wmi->parent_dev->wiphy, alpha2); in ath6kl_wmi_regdomain_event()
1018 alpha2[0], alpha2[1]); in ath6kl_wmi_regdomain_event()
3293 int ath6kl_wmi_set_regdomain_cmd(struct wmi *wmi, const char *alpha2) in ath6kl_wmi_set_regdomain_cmd() argument
3303 memcpy(cmd->iso_name, alpha2, 2); in ath6kl_wmi_set_regdomain_cmd()
Dcfg80211.c3545 request->alpha2[0], request->alpha2[1], in ath6kl_cfg80211_reg_notify()
3553 ret = ath6kl_wmi_set_regdomain_cmd(ar->wmi, request->alpha2); in ath6kl_cfg80211_reg_notify()
Dwmi.h2665 int ath6kl_wmi_set_regdomain_cmd(struct wmi *wmi, const char *alpha2);
/drivers/firmware/broadcom/
Dbcm47xx_sprom.c584 nvram_read_alpha2(prefix, "ccode", sprom->alpha2, fallback); in bcm47xx_fill_sprom()
/drivers/net/wireless/ath/ath9k/
Dinit.c967 error = regulatory_hint(hw->wiphy, reg->alpha2); in ath9k_init_device()
Dhtc_drv_init.c884 error = regulatory_hint(hw->wiphy, reg->alpha2); in ath9k_init_device()
/drivers/net/wireless/ath/carl9170/
Dmain.c2027 regulatory_hint(ar->hw->wiphy, regulatory->alpha2); in carl9170_register()

12