/linux/net/wireless/ |
A D | reg.c | 378 return alpha2[0] && alpha2[1]; in is_alpha2_set() 570 alpha2[0], alpha2[1]); in call_crda() 579 alpha2[0], alpha2[1]); in call_crda() 3208 request->alpha2[0] = alpha2[0]; in regulatory_hint_core() 3209 request->alpha2[1] = alpha2[1]; in regulatory_hint_core() 3235 request->alpha2[0] = alpha2[0]; in regulatory_hint_user() 3236 request->alpha2[1] = alpha2[1]; in regulatory_hint_user() 3308 request->alpha2[0] = alpha2[0]; in regulatory_hint() 3309 request->alpha2[1] = alpha2[1]; in regulatory_hint() 3363 request->alpha2[0] = alpha2[0]; in regulatory_hint_country_ie() [all …]
|
A D | reg.h | 31 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/drivers/net/wireless/realtek/rtlwifi/ |
A D | regd.c | 59 .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() 413 rtlpriv->regd.alpha2[0] = '0'; in rtl_regd_init() 414 rtlpriv->regd.alpha2[1] = '0'; in rtl_regd_init() [all …]
|
/linux/Documentation/networking/ |
A D | regulatory.rst | 45 specific ISO/IEC 3166 alpha2. 83 They have two options -- they either provide an alpha2 so that 105 Example code - drivers hinting an alpha2: 110 domain value to a specific alpha2 as follows:: 124 static int zd_reg2alpha2(u8 regdomain, char *alpha2) 131 alpha2[0] = reg_map->alpha2[0]; 132 alpha2[1] = reg_map->alpha2[1]; 145 r = zd_reg2alpha2(mac->regdomain, alpha2); 147 regulatory_hint(hw->wiphy, alpha2); 168 .alpha2 = "JP", [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | reg.c | 21 .alpha2 = "00", 29 static bool ath11k_regdom_changes(struct ath11k *ar, char *alpha2) in ath11k_regdom_changes() argument 41 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath11k_regdom_changes() 72 if (!ath11k_regdom_changes(ar, request->alpha2)) { in ath11k_reg_notifier() 82 memcpy(&init_country_param.cc_info.alpha2, request->alpha2, 2); in ath11k_reg_notifier() 83 init_country_param.cc_info.alpha2[2] = 0; in ath11k_reg_notifier() 422 memcpy(new_regd->alpha2, curr_regd->alpha2, sizeof(new_regd->alpha2)); in ath11k_regd_intersect() 572 char alpha2[3]; in ath11k_reg_build_regd() local 589 memcpy(tmp_regd->alpha2, reg_info->alpha2, REG_ALPHA2_LEN + 1); in ath11k_reg_build_regd() 590 memcpy(alpha2, reg_info->alpha2, REG_ALPHA2_LEN + 1); in ath11k_reg_build_regd() [all …]
|
/linux/drivers/net/wireless/ath/ |
A D | regd.c | 68 .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 742 reg->alpha2[0] = country->isoName[0]; in __ath_regd_init() 743 reg->alpha2[1] = country->isoName[1]; in __ath_regd_init() 745 reg->alpha2[0] = '0'; in __ath_regd_init() 746 reg->alpha2[1] = '0'; in __ath_regd_init() [all …]
|
A D | regd.h | 262 u16 ath_regd_find_country_by_name(char *alpha2);
|
A D | ath.h | 81 char alpha2[2]; member
|
/linux/drivers/net/wireless/realtek/rtw88/ |
A D | regd.c | 11 {.alpha2 = (_alpha2), \ 23 __r->regulatory->alpha2[0], \ 24 __r->regulatory->alpha2[1], \ 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() 484 request->alpha2[0], in rtw_regd_notifier() [all …]
|
/linux/drivers/net/wireless/realtek/rtw89/ |
A D | regd.c | 9 {.alpha2 = (_alpha2), \ 257 static const struct rtw89_regulatory *rtw89_regd_find_reg_by_name(char *alpha2) in rtw89_regd_find_reg_by_name() argument 262 if (!memcmp(rtw89_regd_map[i].alpha2, alpha2, 2)) in rtw89_regd_find_reg_by_name() 292 ret = regulatory_hint(rtwdev->hw->wiphy, rtwdev->regd->alpha2); in rtw89_regd_init() 306 rtwdev->regd->alpha2[0], rtwdev->regd->alpha2[1], in rtw89_regd_init() 317 rtwdev->regd = rtw89_regd_find_reg_by_name(request->alpha2); in rtw89_regd_notifier_apply() 345 request->alpha2[0], request->alpha2[1], request->initiator, in rtw89_regd_notifier()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
A D | channel.c | 77 .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/include/net/ |
A D | regulatory.h | 82 char alpha2[3]; member 229 char alpha2[3]; member
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | nvm.c | 408 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/drivers/net/wireless/quantenna/qtnfmac/ |
A D | cfg80211.c | 1046 req->alpha2[0], req->alpha2[1]); in qtnf_cfg80211_reg_notifier() 1052 mac->macid, req->alpha2[0], req->alpha2[1], ret); in qtnf_cfg80211_reg_notifier() 1198 regdomain_is_known = isalpha(mac->rd->alpha2[0]) && in qtnf_wiphy_register() 1199 isalpha(mac->rd->alpha2[1]); in qtnf_wiphy_register() 1204 if (mac->rd->alpha2[0] == '9' && mac->rd->alpha2[1] == '9') { in qtnf_wiphy_register() 1235 ret = regulatory_hint(wiphy, mac->rd->alpha2); in qtnf_wiphy_register()
|
A D | commands.h | 25 int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2);
|
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
A D | init.c | 35 memcpy(dev->mt76.alpha2, request->alpha2, sizeof(dev->mt76.alpha2)); in mt7921_regd_notifier()
|
/linux/drivers/net/wireless/zydas/zd1211rw/ |
A D | zd_mac.c | 24 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/drivers/ssb/ |
A D | pci.c | 413 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/drivers/staging/rtl8723bs/os_dep/ |
A D | wifi_regd.c | 38 .alpha2 = "99",
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | init.c | 339 memcpy(dev->mt76.alpha2, request->alpha2, sizeof(dev->mt76.alpha2)); in mt7615_regd_notifier()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
A D | mt76_connac_mcu.c | 79 u8 alpha2[4]; /* regulatory_request.alpha2 */ in mt76_connac_mcu_set_channel_domain() member 155 BUILD_BUG_ON(sizeof(dev->alpha2) > sizeof(hdr.alpha2)); in mt76_connac_mcu_set_channel_domain() 156 memcpy(hdr.alpha2, dev->alpha2, sizeof(dev->alpha2)); in mt76_connac_mcu_set_channel_domain() 2031 BUILD_BUG_ON(sizeof(dev->alpha2) > sizeof(tx_power_tlv.alpha2)); in mt76_connac_mcu_rate_txpower_band() 2032 memcpy(tx_power_tlv.alpha2, dev->alpha2, sizeof(dev->alpha2)); in mt76_connac_mcu_rate_txpower_band()
|
/linux/drivers/net/wireless/intersil/p54/ |
A D | eeprom.h | 106 u8 alpha2[2]; member
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
A D | cfg80211.c | 656 request->alpha2[0], request->alpha2[1]); in mwifiex_reg_notifier() 673 if (strncmp(request->alpha2, "00", 2) && in mwifiex_reg_notifier() 674 strncmp(request->alpha2, adapter->country_code, in mwifiex_reg_notifier() 675 sizeof(request->alpha2))) { in mwifiex_reg_notifier() 676 memcpy(adapter->country_code, request->alpha2, in mwifiex_reg_notifier() 677 sizeof(request->alpha2)); in mwifiex_reg_notifier() 4288 static bool mwifiex_is_valid_alpha2(const char *alpha2) in mwifiex_is_valid_alpha2() argument 4290 if (!alpha2 || strlen(alpha2) != 2) in mwifiex_is_valid_alpha2() 4293 if (isalpha(alpha2[0]) && isalpha(alpha2[1])) in mwifiex_is_valid_alpha2()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | init.c | 293 memcpy(dev->mt76.alpha2, request->alpha2, sizeof(dev->mt76.alpha2)); in mt7915_regd_notifier()
|
/linux/drivers/bcma/ |
A D | sprom.c | 281 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()
|