Home
last modified time | relevance | path

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

123

/linux-6.6.21/net/wireless/
Dreg.c91 .alpha2[0] = '0',
92 .alpha2[1] = '0',
244 .alpha2 = "00",
367 bool is_world_regdom(const char *alpha2) in is_world_regdom() argument
369 if (!alpha2) in is_world_regdom()
371 return alpha2[0] == '0' && alpha2[1] == '0'; in is_world_regdom()
374 static bool is_alpha2_set(const char *alpha2) in is_alpha2_set() argument
376 if (!alpha2) in is_alpha2_set()
378 return alpha2[0] && alpha2[1]; in is_alpha2_set()
381 static bool is_unknown_alpha2(const char *alpha2) in is_unknown_alpha2() argument
[all …]
Dreg.h31 bool reg_is_valid_request(const char *alpha2);
32 bool is_world_regdom(const char *alpha2);
36 int regulatory_hint_user(const char *alpha2,
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/
Dregd.c59 .alpha2 = "99",
67 .alpha2 = "99",
76 .alpha2 = "99",
86 .alpha2 = "99",
96 .alpha2 = "99",
107 .alpha2 = "99",
118 .alpha2 = "99",
410 rtlpriv->regd.alpha2[0] = country->iso_name[0]; in rtl_regd_init()
411 rtlpriv->regd.alpha2[1] = country->iso_name[1]; in rtl_regd_init()
413 rtlpriv->regd.alpha2[0] = '0'; in rtl_regd_init()
[all …]
/linux-6.6.21/Documentation/networking/
Dregulatory.rst45 specific ISO/IEC 3166 alpha2.
52 The alpha2 is passed as an environment variable under the variable COUNTRY.
69 the specified alpha2. The kernel in turn will then ask userspace
70 to provide a regulatory domain for the alpha2 specified by the user
83 They have two options -- they either provide an alpha2 so that
89 regulatory hint with an alpha2. For these drivers there is an additional
105 Example code - drivers hinting an alpha2:
110 domain value to a specific alpha2 as follows::
121 Then you can define a routine to map your read EEPROM value to an alpha2,
124 static int zd_reg2alpha2(u8 regdomain, char *alpha2)
[all …]
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dreg.c23 .alpha2 = "00",
31 static bool ath11k_regdom_changes(struct ath11k *ar, char *alpha2) in ath11k_regdom_changes() argument
43 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath11k_regdom_changes()
75 if (!ath11k_regdom_changes(ar, request->alpha2)) { in ath11k_reg_notifier()
85 memcpy(&set_current_param.alpha2, request->alpha2, 2); in ath11k_reg_notifier()
86 memcpy(&ar->alpha2, &set_current_param.alpha2, 2); in ath11k_reg_notifier()
93 memcpy(&init_country_param.cc_info.alpha2, request->alpha2, 2); in ath11k_reg_notifier()
94 init_country_param.cc_info.alpha2[2] = 0; in ath11k_reg_notifier()
461 memcpy(new_regd->alpha2, curr_regd->alpha2, sizeof(new_regd->alpha2)); in ath11k_regd_intersect()
620 char alpha2[3]; in ath11k_reg_build_regd() local
[all …]
/linux-6.6.21/drivers/net/wireless/ath/
Dregd.c68 .alpha2 = "99",
78 .alpha2 = "99",
89 .alpha2 = "99",
99 .alpha2 = "99",
109 .alpha2 = "99",
458 u16 ath_regd_find_country_by_name(char *alpha2) in ath_regd_find_country_by_name() argument
463 if (!memcmp(allCountries[i].isoName, alpha2, 2)) in ath_regd_find_country_by_name()
481 country_code = ath_regd_find_country_by_name(request->alpha2); in __ath_reg_dyn_country()
742 reg->alpha2[0] = country->isoName[0]; in __ath_regd_init()
743 reg->alpha2[1] = country->isoName[1]; in __ath_regd_init()
[all …]
Dregd.h263 u16 ath_regd_find_country_by_name(char *alpha2);
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Dreg.c23 .alpha2 = "00",
31 static bool ath12k_regdom_changes(struct ath12k *ar, char *alpha2) in ath12k_regdom_changes() argument
43 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath12k_regdom_changes()
74 if (!ath12k_regdom_changes(ar, request->alpha2)) { in ath12k_reg_notifier()
84 memcpy(&arg.cc_info.alpha2, request->alpha2, 2); in ath12k_reg_notifier()
85 arg.cc_info.alpha2[2] = 0; in ath12k_reg_notifier()
423 memcpy(new_regd->alpha2, curr_regd->alpha2, sizeof(new_regd->alpha2)); in ath12k_regd_intersect()
573 char alpha2[3]; in ath12k_reg_build_regd() local
597 memcpy(tmp_regd->alpha2, reg_info->alpha2, REG_ALPHA2_LEN + 1); in ath12k_reg_build_regd()
598 memcpy(alpha2, reg_info->alpha2, REG_ALPHA2_LEN + 1); in ath12k_reg_build_regd()
[all …]
Dreg.h54 u8 alpha2[REG_ALPHA2_LEN + 1]; member
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Dregd.c11 {.alpha2 = (_alpha2), \
23 __r->regulatory->alpha2[0], \
24 __r->regulatory->alpha2[1], \
315 static bool rtw_reg_match(const struct rtw_regulatory *reg, const char *alpha2) in rtw_reg_match() argument
317 return memcmp(reg->alpha2, alpha2, 2) == 0; in rtw_reg_match()
320 static const struct rtw_regulatory *rtw_reg_find_by_name(const char *alpha2) in rtw_reg_find_by_name() argument
325 if (rtw_reg_match(&rtw_reg_map[i], alpha2)) in rtw_reg_find_by_name()
454 next_regd->regulatory = rtw_reg_find_by_name(request->alpha2); in rtw_regd_state_hdl()
473 request->alpha2[0], in rtw_regd_notifier()
474 request->alpha2[1], in rtw_regd_notifier()
[all …]
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7921/
Dinit.c71 memcpy(dev->mt76.alpha2, request->alpha2, sizeof(dev->mt76.alpha2)); in mt7921_regd_notifier()
76 mt7921_mcu_set_clc(dev, request->alpha2, request->country_ie_env); in mt7921_regd_notifier()
Dmcu.c1121 int __mt7921_mcu_set_clc(struct mt792x_dev *dev, u8 *alpha2, in __mt7921_mcu_set_clc() argument
1135 u8 alpha2[2]; in __mt7921_mcu_set_clc() member
1160 if (rule->alpha2[0] != alpha2[0] || in __mt7921_mcu_set_clc()
1161 rule->alpha2[1] != alpha2[1]) in __mt7921_mcu_set_clc()
1164 memcpy(req.alpha2, rule->alpha2, 2); in __mt7921_mcu_set_clc()
1188 int mt7921_mcu_set_clc(struct mt792x_dev *dev, u8 *alpha2, in mt7921_mcu_set_clc() argument
1196 ret = __mt7921_mcu_set_clc(dev, alpha2, env_cap, in mt7921_mcu_set_clc()
Dmt7921.h121 u8 alpha2[2]; member
332 int mt7921_mcu_set_clc(struct mt792x_dev *dev, u8 *alpha2,
/linux-6.6.21/include/net/
Dregulatory.h85 char alpha2[3]; member
221 char alpha2[3]; member
/linux-6.6.21/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()
729 wlc->pub->unit, __func__, request->alpha2); in brcms_reg_notifier()
734 brcms_c_japan_ccode(request->alpha2)); in brcms_reg_notifier()
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dregd.c11 {.alpha2 = (_alpha2), \
260 static const struct rtw89_regd *rtw89_regd_find_reg_by_name(char *alpha2) in rtw89_regd_find_reg_by_name() argument
265 if (!memcmp(rtw89_regd_map[i].alpha2, alpha2, 2)) in rtw89_regd_find_reg_by_name()
282 ##_argv, __r->alpha2[0], __r->alpha2[1], \
420 rtwdev->regulatory.regd->alpha2); in rtw89_regd_init()
437 rtwdev->regulatory.regd = rtw89_regd_find_reg_by_name(request->alpha2); in rtw89_regd_notifier_apply()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/
Dnvm.c408 iwl_mvm_update_mcc(struct iwl_mvm *mvm, const char *alpha2, in iwl_mvm_update_mcc() argument
412 .mcc = cpu_to_le16(alpha2[0] << 8 | alpha2[1]), in iwl_mvm_update_mcc()
434 alpha2[0], alpha2[1], src_id); in iwl_mvm_update_mcc()
/linux-6.6.21/drivers/net/wireless/quantenna/qtnfmac/
Dcfg80211.c1048 req->alpha2[0], req->alpha2[1]); in qtnf_cfg80211_reg_notifier()
1054 mac->macid, req->alpha2[0], req->alpha2[1], ret); in qtnf_cfg80211_reg_notifier()
1200 regdomain_is_known = isalpha(mac->rd->alpha2[0]) && in qtnf_wiphy_register()
1201 isalpha(mac->rd->alpha2[1]); in qtnf_wiphy_register()
1206 if (mac->rd->alpha2[0] == '9' && mac->rd->alpha2[1] == '9') { in qtnf_wiphy_register()
1237 ret = regulatory_hint(wiphy, mac->rd->alpha2); in qtnf_wiphy_register()
Dcommands.h25 int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2);
/linux-6.6.21/drivers/net/wireless/zydas/zd1211rw/
Dzd_mac.c24 char alpha2[2]; member
135 static int zd_reg2alpha2(u8 regdomain, char *alpha2) in zd_reg2alpha2() argument
142 alpha2[0] = reg_map->alpha2[0]; in zd_reg2alpha2()
143 alpha2[1] = reg_map->alpha2[1]; in zd_reg2alpha2()
186 char alpha2[2]; in zd_mac_init_hw() local
211 r = zd_reg2alpha2(mac->regdomain, alpha2); in zd_mac_init_hw()
215 r = regulatory_hint(hw->wiphy, alpha2); in zd_mac_init_hw()
/linux-6.6.21/drivers/ssb/
Dpci.c413 SPEX(alpha2[0], SSB_SPROM1_CCODE, 0xff00, 8); in sprom_extract_r123()
414 SPEX(alpha2[1], SSB_SPROM1_CCODE, 0x00ff, 0); in sprom_extract_r123()
494 SPEX(alpha2[0], SSB_SPROM4_CCODE, 0xff00, 8); in sprom_extract_r45()
495 SPEX(alpha2[1], SSB_SPROM4_CCODE, 0x00ff, 0); in sprom_extract_r45()
501 SPEX(alpha2[0], SSB_SPROM5_CCODE, 0xff00, 8); in sprom_extract_r45()
502 SPEX(alpha2[1], SSB_SPROM5_CCODE, 0x00ff, 0); in sprom_extract_r45()
610 SPEX(alpha2[0], SSB_SPROM8_CCODE, 0xff00, 8); in sprom_extract_r8()
611 SPEX(alpha2[1], SSB_SPROM8_CCODE, 0x00ff, 0); in sprom_extract_r8()
/linux-6.6.21/drivers/staging/rtl8723bs/os_dep/
Dwifi_regd.c38 .alpha2 = "99",
/linux-6.6.21/drivers/net/wireless/intersil/p54/
Deeprom.h106 u8 alpha2[2]; member
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/
Dinit.c340 memcpy(dev->mt76.alpha2, request->alpha2, sizeof(dev->mt76.alpha2)); in mt7615_regd_notifier()
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c646 request->alpha2[0], request->alpha2[1]); in mwifiex_reg_notifier()
663 if (strncmp(request->alpha2, "00", 2) && in mwifiex_reg_notifier()
664 strncmp(request->alpha2, adapter->country_code, in mwifiex_reg_notifier()
665 sizeof(request->alpha2))) { in mwifiex_reg_notifier()
666 memcpy(adapter->country_code, request->alpha2, in mwifiex_reg_notifier()
667 sizeof(request->alpha2)); in mwifiex_reg_notifier()
4284 static bool mwifiex_is_valid_alpha2(const char *alpha2) in mwifiex_is_valid_alpha2() argument
4286 if (!alpha2 || strlen(alpha2) != 2) in mwifiex_is_valid_alpha2()
4289 if (isalpha(alpha2[0]) && isalpha(alpha2[1])) in mwifiex_is_valid_alpha2()

123