Home
last modified time | relevance | path

Searched refs:regd (Results 1 – 25 of 44) sorted by relevance

12

/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dmcc.c94 struct ieee80211_regdomain *regd = NULL; in iwl_mld_get_regdomain() local
122 regd = iwl_parse_nvm_mcc_info(mld->trans, in iwl_mld_get_regdomain()
129 if (IS_ERR(regd)) { in iwl_mld_get_regdomain()
131 PTR_ERR(regd)); in iwl_mld_get_regdomain()
136 regd->alpha2, regd->alpha2[0], in iwl_mld_get_regdomain()
137 regd->alpha2[1], resp->source_id); in iwl_mld_get_regdomain()
169 return regd; in iwl_mld_get_regdomain()
183 struct ieee80211_regdomain *regd; in iwl_mld_update_changed_regdomain() local
186 regd = iwl_mld_get_current_regdomain(mld, &changed); in iwl_mld_update_changed_regdomain()
188 if (IS_ERR_OR_NULL(regd)) in iwl_mld_update_changed_regdomain()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dreg.c11 /* World regdom to be used in case default regd from fw is unavailable */
34 const struct ieee80211_regdomain *regd; in ath11k_regdom_changes() local
38 regd = get_wiphy_regdom(ar->hw->wiphy); in ath11k_regdom_changes()
40 * user request is received before we update the regd received in ath11k_regdom_changes()
43 if (!regd) in ath11k_regdom_changes()
46 return memcmp(regd->alpha2, alpha2, 2) != 0;
62 "driver initiated regd update\n"); in ath11k_reg_notifier()
241 struct ieee80211_regdomain *regd, *regd_copy = NULL; in ath11k_regd_update()
250 /* Prefer the latest regd update over default if it's available */ in ath11k_regd_update()
252 regd in ath11k_regd_update()
239 struct ieee80211_regdomain *regd, *regd_copy = NULL; ath11k_regd_update() local
537 ath11k_reg_update_weather_radar_band(struct ath11k_base * ab,struct ieee80211_regdomain * regd,struct cur_reg_rule * reg_rule,u8 * rule_idx,u32 flags,u16 max_bw) ath11k_reg_update_weather_radar_band() argument
878 struct ieee80211_regdomain *regd; ath11k_reg_handle_chan_list() local
[all...]
/linux/drivers/net/wireless/realtek/rtw88/
H A Dregd.c19 const struct rtw_regd *__r = &__d->regd; \
348 rtwdev->regd.state = RTW_REGD_STATE_PROGRAMMED; in rtw_regd_init()
357 rtwdev->regd.state = RTW_REGD_STATE_WORLDWIDE; in rtw_regd_init()
360 rtwdev->regd.regulatory = &rtw_reg_ww; in rtw_regd_init()
361 rtwdev->regd.dfs_region = NL80211_DFS_UNSET; in rtw_regd_init()
362 rtw_dbg_regd_dump(rtwdev, "regd init state %d: ", rtwdev->regd.state); in rtw_regd_init()
377 if (rtwdev->regd.state == RTW_REGD_STATE_PROGRAMMED) { in rtw_regd_hint()
456 return rtw_regd_handler[rtwdev->regd.state](rtwdev, next_regd, request); in rtw_regd_state_hdl()
472 rtwdev->regd.state, in rtw_regd_notifier()
480 rtwdev->regd.state, next_regd.state); in rtw_regd_notifier()
[all …]
H A Dregd.h70 bool rtw_regd_has_alt(u8 regd, u8 *regd_alt);
H A Ddebug.c15 #include "regd.h"
677 static const char *rtw_get_regd_string(u8 regd) in rtw_get_regd_string()
679 switch (regd) { in rtw_get_regd_string()
703 u8 path, rate, bw, ch, regd; in rtw_debugfs_get_tx_pwr_tbl()
709 regd = rtw_regd_get(rtwdev); in rtw_debugfs_get_tx_pwr_tbl()
713 seq_printf(m, "regulatory: %s\n", rtw_get_regd_string(regd)); in rtw_debugfs_get_tx_pwr_tbl()
737 ch, regd, &pwr_param); in rtw_debugfs_get_tx_pwr_tbl()
672 rtw_get_regd_string(u8 regd) rtw_get_regd_string() argument
698 u8 path, rate, bw, ch, regd; rtw_debugfs_get_tx_pwr_tbl() local
H A DMakefile19 regd.o
/linux/net/wireless/
H A Dreg.c142 return rcu_dereference_check(wiphy->regd, in get_wiphy_regdom()
164 const struct ieee80211_regdomain *regd = NULL; in reg_get_dfs_region() local
169 regd = get_cfg80211_regdom(); in reg_get_dfs_region()
170 dfs_region = regd->dfs_region; in reg_get_dfs_region()
184 if (wiphy_regd->dfs_region == regd->dfs_region) in reg_get_dfs_region()
190 reg_dfs_region_str(regd->dfs_region)); in reg_get_dfs_region()
442 struct ieee80211_regdomain *regd; in reg_copy_regd()
445 regd = kzalloc_flex(*regd, reg_rules, src_regd->n_reg_rules); in reg_copy_regd()
446 if (!regd) in reg_copy_regd()
441 struct ieee80211_regdomain *regd; reg_copy_regd() local
1602 freq_reg_info_regd(u32 center_freq,const struct ieee80211_regdomain * regd,u32 bw) freq_reg_info_regd() argument
1641 const struct ieee80211_regdomain *regd = reg_get_regdomain(wiphy); __freq_reg_info() local
1683 reg_rule_to_chan_bw_flags(const struct ieee80211_regdomain * regd,const struct ieee80211_reg_rule * reg_rule,const struct ieee80211_channel * chan) reg_rule_to_chan_bw_flags() argument
1745 const struct ieee80211_regdomain *regd; handle_channel_single_rule() local
1828 const struct ieee80211_regdomain *regd; handle_channel_adjacent_rules() local
2254 const struct ieee80211_regdomain *regd; reg_process_ht_flags_channel() local
2569 handle_channel_custom(struct wiphy * wiphy,struct ieee80211_channel * chan,const struct ieee80211_regdomain * regd,u32 min_bw) handle_channel_custom() argument
2629 handle_band_custom(struct wiphy * wiphy,struct ieee80211_supported_band * sband,const struct ieee80211_regdomain * regd) handle_band_custom() argument
2648 wiphy_apply_custom_regulatory(struct wiphy * wiphy,const struct ieee80211_regdomain * regd) wiphy_apply_custom_regulatory() argument
2831 const struct ieee80211_regdomain *regd, *tmp; reg_process_hint_driver() local
3187 const struct ieee80211_regdomain *regd; reg_process_self_managed_hint() local
3882 const struct ieee80211_regdomain *regd; reg_set_rd_driver() local
4055 const struct ieee80211_regdomain *regd; __regulatory_set_wiphy_regd() local
4221 const struct ieee80211_regdomain *regd = NULL; regulatory_pre_cac_allowed() local
[all...]
/linux/drivers/net/wireless/realtek/rtw89/
H A Dacpi.c654 rtw89_acpi_geo_sar_regd_convert_hp_idx(enum rtw89_regulation_type regd) in rtw89_acpi_geo_sar_regd_convert_hp_idx() argument
656 switch (regd) { in rtw89_acpi_geo_sar_regd_convert_hp_idx()
676 rtw89_acpi_geo_sar_regd_convert_rt_idx(enum rtw89_regulation_type regd) in rtw89_acpi_geo_sar_regd_convert_rt_idx() argument
678 switch (regd) { in rtw89_acpi_geo_sar_regd_convert_rt_idx()
726 enum rtw89_regulation_type regd, in rtw89_acpi_geo_sar_load_hp_legacy() argument
733 rtw89_acpi_geo_sar_regd_convert_hp_idx(regd); in rtw89_acpi_geo_sar_load_hp_legacy()
767 enum rtw89_regulation_type regd, in rtw89_acpi_geo_sar_load_hp_has_6ghz() argument
774 rtw89_acpi_geo_sar_regd_convert_hp_idx(regd); in rtw89_acpi_geo_sar_load_hp_has_6ghz()
810 enum rtw89_regulation_type regd, in rtw89_acpi_geo_sar_load_rt_legacy() argument
817 rtw89_acpi_geo_sar_regd_convert_rt_idx(regd); in rtw89_acpi_geo_sar_load_rt_legacy()
[all …]
H A DMakefile14 regd.o \
H A Dacpi.h271 enum rtw89_regulation_type regd,
H A Dfw.c1422 static bool rtw89_regd_entcpy(struct rtw89_regd *regd, const void *cursor, in rtw89_build_afe_pwr_seq_from_elm()
1437 memset(regd, 0, sizeof(*regd));
1439 regd->alpha2[0] = entry.alpha2_0; in rtw89_build_tx_comp_from_elm()
1440 regd->alpha2[1] = entry.alpha2_1; in rtw89_build_tx_comp_from_elm()
1441 regd->alpha2[2] = '\0'; in rtw89_build_tx_comp_from_elm()
1444 regd->txpwr_regd[RTW89_BAND_2G] = entry.rule_2ghz < RTW89_REGD_NUM ? in rtw89_build_tx_comp_from_elm()
1446 regd->txpwr_regd[RTW89_BAND_5G] = entry.rule_5ghz < RTW89_REGD_NUM ? in rtw89_build_tx_comp_from_elm()
1448 regd->txpwr_regd[RTW89_BAND_6G] = entry.rule_6ghz < RTW89_REGD_NUM ? in rtw89_build_tx_comp_from_elm()
1457 set_bit(i, regd in rtw89_build_tx_comp_from_elm()
1319 rtw89_regd_entcpy(struct rtw89_regd * regd,const void * cursor,u8 cursor_size) rtw89_regd_entcpy() argument
1360 rtw89_for_each_in_regd_element(regd,element) global() argument
1376 struct rtw89_regd regd; rtw89_recognize_regd_from_elm() local
[all...]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dregd.c6 #include "regd.h"
271 struct ieee80211_regdomain *regd; in mt7921_regd_update()
312 regd = kzalloc_flex(*regd, reg_rules, num_of_rules); in mt7921_regd_update()
313 if (!regd) { in mt7921_regd_update()
320 rule = &regd->reg_rules[i]; in mt7921_regd_update()
334 regd->n_reg_rules = num_of_rules;
335 regd->dfs_region = ev->dfs_region;
337 memcpy(regd->alpha2, alpha2, 2); in mt7921_regd_is_valid_alpha2()
343 ret = regulatory_set_wiphy_regd(wiphy, regd); in mt7921_regd_is_valid_alpha2()
251 struct ieee80211_regdomain *regd; mt7921_regd_update() local
[all...]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dnvm.c584 struct ieee80211_regdomain *regd; in iwl_mvm_init_mcc()
617 regd = iwl_mvm_get_current_regdomain(mvm, NULL); in iwl_mvm_init_mcc()
618 if (IS_ERR_OR_NULL(regd)) in iwl_mvm_init_mcc()
623 kfree(regd); in iwl_mvm_rx_chub_update_mcc()
624 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, mcc, in iwl_mvm_rx_chub_update_mcc()
626 if (IS_ERR_OR_NULL(regd)) in iwl_mvm_rx_chub_update_mcc()
630 retval = regulatory_set_wiphy_regd_sync(mvm->hw->wiphy, regd); in iwl_mvm_rx_chub_update_mcc()
631 kfree(regd); in iwl_mvm_rx_chub_update_mcc()
642 struct ieee80211_regdomain *regd; in iwl_mvm_rx_chub_update_mcc()
664 regd in iwl_mvm_rx_chub_update_mcc()
569 struct ieee80211_regdomain *regd; iwl_mvm_init_mcc() local
627 struct ieee80211_regdomain *regd; iwl_mvm_rx_chub_update_mcc() local
[all...]
H A Dmac80211.c122 struct ieee80211_regdomain *regd = NULL; in iwl_mvm_get_regdomain() local
150 regd = iwl_parse_nvm_mcc_info(mvm->trans, in iwl_mvm_get_regdomain()
158 if (IS_ERR_OR_NULL(regd)) { in iwl_mvm_get_regdomain()
160 PTR_ERR_OR_ZERO(regd)); in iwl_mvm_get_regdomain()
165 regd->alpha2, regd->alpha2[0], regd->alpha2[1], src_id); in iwl_mvm_get_regdomain()
173 return regd; in iwl_mvm_get_regdomain()
179 struct ieee80211_regdomain *regd; in iwl_mvm_update_changed_regdom() local
184 regd in iwl_mvm_update_changed_regdom()
206 struct ieee80211_regdomain *regd; iwl_mvm_init_fw_regd() local
[all...]
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dregd.c298 struct ieee80211_regdomain *regd; in mt7925_regd_update() local
339 regd = kzalloc_flex(*regd, reg_rules, num_of_rules); in mt7925_regd_update()
340 if (!regd) { in mt7925_regd_update()
347 rule = &regd->reg_rules[i]; in mt7925_regd_update()
361 regd->n_reg_rules = num_of_rules; in mt7925_regd_update()
362 regd->dfs_region = ev->dfs_region; in mt7925_regd_update()
364 memcpy(regd->alpha2, alpha2, 2); in mt7925_regd_update()
370 ret = regulatory_set_wiphy_regd(wiphy, regd); in mt7925_regd_update()
372 kfree(regd); in mt7925_regd_update()
H A DMakefile7 mt7925-common-y := mac.o mcu.o regd.o main.o init.o debugfs.o nan.o
/linux/drivers/net/wireless/ath/
H A Dregd.c23 #include "regd.h"
198 static inline bool is_wwr_sku(u16 regd) in is_wwr_sku() argument
200 return ((regd & COUNTRY_ERD_FLAG) != COUNTRY_ERD_FLAG) && in is_wwr_sku()
201 (((regd & WORLD_SKU_MASK) == WORLD_SKU_PREFIX) || in is_wwr_sku()
202 (regd == WORLD)); in is_wwr_sku()
642 const struct ieee80211_regdomain *regd; in ath_regd_init_wiphy()
653 regd = ath_world_regdomain(reg); in ath_regd_init_wiphy()
661 regd = ath_default_world_regdomain(); in ath_regd_init_wiphy()
664 wiphy_apply_custom_regulatory(wiphy, regd); in ath_regd_init_wiphy()
640 const struct ieee80211_regdomain *regd; ath_regd_init_wiphy() local
H A DMakefile16 regd.o \
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_cmdresp.c1045 struct ieee80211_regdomain *regd; in mwifiex_create_custom_regdomain() local
1055 regd = kzalloc_flex(*regd, reg_rules, num_chan); in mwifiex_create_custom_regdomain()
1056 if (!regd) in mwifiex_create_custom_regdomain()
1065 kfree(regd); in mwifiex_create_custom_regdomain()
1096 rule = &regd->reg_rules[valid_rules - 1]; in mwifiex_create_custom_regdomain()
1119 regd->n_reg_rules = valid_rules; in mwifiex_create_custom_regdomain()
1120 regd->alpha2[0] = '9'; in mwifiex_create_custom_regdomain()
1121 regd->alpha2[1] = '9'; in mwifiex_create_custom_regdomain()
1123 return regd; in mwifiex_create_custom_regdomain()
1133 struct ieee80211_regdomain *regd; in mwifiex_ret_chan_region_cfg() local
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c203 const struct brcms_regd *regd = NULL; in brcms_world_regd() local
208 regd = &cntry_locales[i]; in brcms_world_regd()
213 return regd; in brcms_world_regd()
310 const struct brcms_regd *regd) in brcms_c_set_country() argument
742 const struct brcms_regd *regd = wlc->cmi->world_regd; in brcms_c_regd_init()
771 wiphy_apply_custom_regulatory(wlc->wiphy, regd->regdomain); in brcms_c_regd_init()
740 const struct brcms_regd *regd = wlc->cmi->world_regd; brcms_c_regd_init() local
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-nvm-parse.c1751 struct ieee80211_regdomain *regd, *copy_rd; in iwl_parse_nvm_mcc_info()
1795 regd = kzalloc_flex(*regd, reg_rules, num_of_ch ?: 1); in iwl_parse_nvm_mcc_info()
1796 if (!regd) in iwl_parse_nvm_mcc_info()
1800 regd->alpha2[0] = fw_mcc >> 8; in iwl_parse_nvm_mcc_info()
1801 regd->alpha2[1] = fw_mcc & 0xff; in iwl_parse_nvm_mcc_info()
1840 rule = &regd->reg_rules[valid_rules - 1]; in iwl_parse_nvm_mcc_info()
1869 reg_query_regdb_wmm(regd->alpha2, center_freq, rule); in iwl_parse_nvm_mcc_info()
1875 rule = &regd->reg_rules[valid_rules - 1]; in iwl_parse_nvm_mcc_info()
1884 regd in iwl_parse_nvm_mcc_info()
1750 struct ieee80211_regdomain *regd, *copy_rd; iwl_parse_nvm_mcc_info() local
[all...]
/linux/drivers/net/wireless/realtek/rtlwifi/
H A DMakefile11 regd.o \
/linux/drivers/net/wireless/mediatek/mt76/
H A Deeprom.c231 struct property *regd = of_find_property(cur, "regdomain", NULL); in mt76_find_power_limits_node() local
233 if (!country && !regd) { in mt76_find_power_limits_node()
240 mt76_string_prop_find(regd, region_name)) { in mt76_find_power_limits_node()
/linux/drivers/net/wireless/nxp/nxpwifi/
H A Dsta_cmd.c2815 struct ieee80211_regdomain *regd; in nxpwifi_create_custom_regdomain() local
2825 regd = kzalloc_flex(*regd, reg_rules, num_chan); in nxpwifi_create_custom_regdomain()
2826 if (!regd) in nxpwifi_create_custom_regdomain()
2835 kfree(regd); in nxpwifi_create_custom_regdomain()
2866 rule = &regd->reg_rules[valid_rules - 1]; in nxpwifi_create_custom_regdomain()
2889 regd->n_reg_rules = valid_rules; in nxpwifi_create_custom_regdomain()
2890 regd->alpha2[0] = '9'; in nxpwifi_create_custom_regdomain()
2891 regd->alpha2[1] = '9'; in nxpwifi_create_custom_regdomain()
2893 return regd; in nxpwifi_create_custom_regdomain()
2906 struct ieee80211_regdomain *regd; in nxpwifi_ret_sta_chan_region_cfg() local
[all …]
/linux/drivers/net/wireless/virtual/
H A Dmac80211_hwsim_main.c4393 const struct ieee80211_regdomain *regd;
4444 if (param->regd) { in append_radio_msg()
4448 if (hwsim_world_regdom_custom[i] != param->regd) in append_radio_msg()
6159 if (param->regd) { in mac80211_hwsim_new_radio()
6160 data->regd = param->regd; in mac80211_hwsim_new_radio()
6162 wiphy_apply_custom_regulatory(hw->wiphy, param->regd); in mac80211_hwsim_new_radio()
6335 param.regd = data->regd; in hwsim_mon_setup()
6957 param.regd in hwsim_new_radio_nl()
4386 const struct ieee80211_regdomain *regd; global() member
[all...]

12