| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/ |
| H A D | rtw_chplan.h | 75 #define regd_str(regd) (((regd) >= RTW_REGD_NUM) ? _regd_str[RTW_REGD_NA] : _regd_str[(regd)]) argument 121 #define txpwr_lmt_str(regd) (((regd) > TXPWR_LMT_WW) ? _txpwr_lmt_str[TXPWR_LMT_WW] : _txpwr_lmt_st… argument 129 #define rtw_regd_to_edcca_mode(regd) (((regd) >= RTW_REGD_NUM) ? RTW_EDCCA_NORMAL : _rtw_regd_to_ed… argument 132 #define rtw_regd_to_txpwr_lmt(regd) (((regd) >= RTW_REGD_NUM) ? TXPWR_LMT_WW : _rtw_regd_to_txpwr_l… argument
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | regd.c | 335 const struct ieee80211_regdomain *regd; in _rtl_regd_init_wiphy() local 342 regd = _rtl_regdomain_select(reg); in _rtl_regd_init_wiphy() 343 wiphy_apply_custom_regulatory(wiphy, regd); in _rtl_regd_init_wiphy() 393 rtlpriv->regd.country_code = in rtl_regd_init() 398 rtlpriv->efuse.channel_plan, rtlpriv->regd.country_code); in rtl_regd_init() 400 if (rtlpriv->regd.country_code >= COUNTRY_CODE_MAX) { in rtl_regd_init() 404 rtlpriv->regd.country_code = COUNTRY_CODE_WORLD_WIDE_13; in rtl_regd_init() 407 country = _rtl_regd_find_country(rtlpriv->regd.country_code); in rtl_regd_init() 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() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/ |
| H A D | rtw_chplan.h | 115 #define regd_str(regd) (((regd) >= RTW_REGD_NUM) ? _regd_str[RTW_REGD_NA] : _regd_str[(regd)]) argument 162 #define txpwr_lmt_str(regd) (((regd) >= TXPWR_LMT_NUM) ? _txpwr_lmt_str[TXPWR_LMT_NUM] : _txpwr_lmt… argument 170 #define rtw_regd_to_edcca_mode(regd) (((regd) >= RTW_REGD_NUM) ? RTW_EDCCA_NORMAL : _rtw_regd_to_ed… argument 173 #define rtw_regd_to_txpwr_lmt(regd) (((regd) >= RTW_REGD_NUM) ? TXPWR_LMT_WW : _rtw_regd_to_txpwr_l… argument
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/ |
| H A D | rtw_chplan.h | 114 #define regd_str(regd) (((regd) >= RTW_REGD_NUM) ? _regd_str[RTW_REGD_NA] : _regd_str[(regd)]) argument 161 #define txpwr_lmt_str(regd) (((regd) >= TXPWR_LMT_NUM) ? _txpwr_lmt_str[TXPWR_LMT_NUM] : _txpwr_lmt… argument 169 #define rtw_regd_to_edcca_mode(regd) (((regd) >= RTW_REGD_NUM) ? RTW_EDCCA_NORM : _rtw_regd_to_edcc… argument 172 #define rtw_regd_to_txpwr_lmt(regd) (((regd) >= RTW_REGD_NUM) ? TXPWR_LMT_WW : _rtw_regd_to_txpwr_l… argument
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/ |
| H A D | rtw_chplan.h | 114 #define regd_str(regd) (((regd) >= RTW_REGD_NUM) ? _regd_str[RTW_REGD_NA] : _regd_str[(regd)]) argument 161 #define txpwr_lmt_str(regd) (((regd) >= TXPWR_LMT_NUM) ? _txpwr_lmt_str[TXPWR_LMT_NUM] : _txpwr_lmt… argument 169 #define rtw_regd_to_edcca_mode(regd) (((regd) >= RTW_REGD_NUM) ? RTW_EDCCA_NORM : _rtw_regd_to_edcc… argument 172 #define rtw_regd_to_txpwr_lmt(regd) (((regd) >= RTW_REGD_NUM) ? TXPWR_LMT_WW : _rtw_regd_to_txpwr_l… argument
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/ |
| H A D | rtw_chplan.h | 115 #define regd_str(regd) (((regd) >= RTW_REGD_NUM) ? _regd_str[RTW_REGD_NA] : _regd_str[(regd)]) argument 162 #define txpwr_lmt_str(regd) (((regd) >= TXPWR_LMT_NUM) ? _txpwr_lmt_str[TXPWR_LMT_NUM] : _txpwr_lmt… argument 170 #define rtw_regd_to_edcca_mode(regd) (((regd) >= RTW_REGD_NUM) ? RTW_EDCCA_NORMAL : _rtw_regd_to_ed… argument 173 #define rtw_regd_to_txpwr_lmt(regd) (((regd) >= RTW_REGD_NUM) ? TXPWR_LMT_WW : _rtw_regd_to_txpwr_l… argument
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath11k/ |
| H A D | reg.c | 31 const struct ieee80211_regdomain *regd; in ath11k_regdom_changes() local 33 regd = rcu_dereference_rtnl(ar->hw->wiphy->regd); in ath11k_regdom_changes() 38 if (!regd) in ath11k_regdom_changes() 41 return memcmp(regd->alpha2, alpha2, 2) != 0; in ath11k_regdom_changes() 203 struct ieee80211_regdomain *regd, *regd_copy = NULL; in ath11k_regd_update() local 214 regd = ab->new_regd[pdev_id]; in ath11k_regd_update() 222 regd = ab->default_regd[pdev_id]; in ath11k_regd_update() 226 regd = (struct ieee80211_regdomain *)&ath11k_world_regd; in ath11k_regd_update() 230 if (!regd) { in ath11k_regd_update() 236 regd_len = sizeof(*regd) + (regd->n_reg_rules * in ath11k_regd_update() [all …]
|
| /OK3568_Linux_fs/kernel/net/wireless/ |
| H A D | reg.c | 144 return rcu_dereference_rtnl(wiphy->regd); in get_wiphy_regdom() 164 const struct ieee80211_regdomain *regd = NULL; in reg_get_dfs_region() local 167 regd = get_cfg80211_regdom(); in reg_get_dfs_region() 175 if (wiphy_regd->dfs_region == regd->dfs_region) in reg_get_dfs_region() 181 reg_dfs_region_str(regd->dfs_region)); in reg_get_dfs_region() 184 return regd->dfs_region; in reg_get_dfs_region() 429 struct ieee80211_regdomain *regd; in reg_copy_regd() local 432 regd = kzalloc(struct_size(regd, reg_rules, src_regd->n_reg_rules), in reg_copy_regd() 434 if (!regd) in reg_copy_regd() 437 memcpy(regd, src_regd, sizeof(struct ieee80211_regdomain)); in reg_copy_regd() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtw88/ |
| H A D | phy.c | 1322 static void rtw_phy_set_tx_power_limit(struct rtw_dev *rtwdev, u8 regd, u8 band, in rtw_phy_set_tx_power_limit() argument 1334 if (regd >= RTW_REGD_MAX || bw >= RTW_CHANNEL_WIDTH_MAX || in rtw_phy_set_tx_power_limit() 1338 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit() 1343 hal->tx_pwr_limit_2g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit() 1348 hal->tx_pwr_limit_5g[regd][bw][rs][ch_idx] = pwr_limit; in rtw_phy_set_tx_power_limit() 1357 rtw_xref_5g_txpwr_lmt(struct rtw_dev *rtwdev, u8 regd, in rtw_xref_5g_txpwr_lmt() argument 1362 s8 lmt_ht = hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx]; in rtw_xref_5g_txpwr_lmt() 1363 s8 lmt_vht = hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx]; in rtw_xref_5g_txpwr_lmt() 1369 hal->tx_pwr_limit_5g[regd][bw][rs_ht][ch_idx] = lmt_vht; in rtw_xref_5g_txpwr_lmt() 1372 hal->tx_pwr_limit_5g[regd][bw][rs_vht][ch_idx] = lmt_ht; in rtw_xref_5g_txpwr_lmt() [all …]
|
| H A D | phy.h | 47 enum rtw_bandwidth bw, u8 channel, u8 regd); 64 u8 regd; member 150 u8 rate, u8 bw, u8 ch, u8 regd,
|
| H A D | regd.c | 348 rtwdev->regd = rtw_regd_find_reg_by_name(request->alpha2); in rtw_regd_notifier_apply() 379 rtwdev->regd = rtw_regd_find_reg_by_name(rtwdev->efuse.country_code); in rtw_regd_init() 380 rtw_regd_init_wiphy(&rtwdev->regd, wiphy, reg_notifier); in rtw_regd_init() 395 rtwdev->regd.chplan, rtwdev->regd.txpwr_regd); in rtw_regd_notifier()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | nvm.c | 559 struct ieee80211_regdomain *regd; in iwl_mvm_init_mcc() local 592 regd = iwl_mvm_get_current_regdomain(mvm, NULL); in iwl_mvm_init_mcc() 593 if (IS_ERR_OR_NULL(regd)) in iwl_mvm_init_mcc() 598 kfree(regd); in iwl_mvm_init_mcc() 599 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, mcc, in iwl_mvm_init_mcc() 601 if (IS_ERR_OR_NULL(regd)) in iwl_mvm_init_mcc() 605 retval = regulatory_set_wiphy_regd_sync_rtnl(mvm->hw->wiphy, regd); in iwl_mvm_init_mcc() 606 kfree(regd); in iwl_mvm_init_mcc() 617 struct ieee80211_regdomain *regd; in iwl_mvm_rx_chub_update_mcc() local 638 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, mcc, src, NULL); in iwl_mvm_rx_chub_update_mcc() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/os_dep/linux/ |
| H A D | wifi_regd.c | 93 …_wiphy_regd(struct wiphy *wiphy, struct get_chplan_resp *chplan, struct ieee80211_regdomain **regd) in rtw_build_wiphy_regd() argument 104 if (regd) in rtw_build_wiphy_regd() 105 *regd = NULL; in rtw_build_wiphy_regd() 166 if (!regd) in rtw_build_wiphy_regd() 169 r = rtw_zmalloc(sizeof(**regd) + sizeof(struct ieee80211_reg_rule) * rule_num); in rtw_build_wiphy_regd() 181 *regd = r; in rtw_build_wiphy_regd() 211 struct ieee80211_regdomain *regd; in rtw_update_wiphy_regd() local 214 ret = rtw_build_wiphy_regd(wiphy, chplan, ®d); in rtw_update_wiphy_regd() 229 ret = regulatory_set_wiphy_regd_sync(wiphy, regd); in rtw_update_wiphy_regd() 231 ret = regulatory_set_wiphy_regd_sync_rtnl(wiphy, regd); in rtw_update_wiphy_regd() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/os_dep/linux/ |
| H A D | wifi_regd.c | 93 …_wiphy_regd(struct wiphy *wiphy, struct get_chplan_resp *chplan, struct ieee80211_regdomain **regd) in rtw_build_wiphy_regd() argument 104 if (regd) in rtw_build_wiphy_regd() 105 *regd = NULL; in rtw_build_wiphy_regd() 166 if (!regd) in rtw_build_wiphy_regd() 169 r = rtw_zmalloc(sizeof(**regd) + sizeof(struct ieee80211_reg_rule) * rule_num); in rtw_build_wiphy_regd() 181 *regd = r; in rtw_build_wiphy_regd() 211 struct ieee80211_regdomain *regd; in rtw_update_wiphy_regd() local 214 ret = rtw_build_wiphy_regd(wiphy, chplan, ®d); in rtw_update_wiphy_regd() 229 ret = regulatory_set_wiphy_regd_sync(wiphy, regd); in rtw_update_wiphy_regd() 231 ret = regulatory_set_wiphy_regd_sync_rtnl(wiphy, regd); in rtw_update_wiphy_regd() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/os_dep/linux/ |
| H A D | wifi_regd.c | 93 …_wiphy_regd(struct wiphy *wiphy, struct get_chplan_resp *chplan, struct ieee80211_regdomain **regd) in rtw_build_wiphy_regd() argument 104 if (regd) in rtw_build_wiphy_regd() 105 *regd = NULL; in rtw_build_wiphy_regd() 166 if (!regd) in rtw_build_wiphy_regd() 169 r = rtw_zmalloc(sizeof(**regd) + sizeof(struct ieee80211_reg_rule) * rule_num); in rtw_build_wiphy_regd() 181 *regd = r; in rtw_build_wiphy_regd() 211 struct ieee80211_regdomain *regd; in rtw_update_wiphy_regd() local 214 ret = rtw_build_wiphy_regd(wiphy, chplan, ®d); in rtw_update_wiphy_regd() 229 ret = regulatory_set_wiphy_regd_sync(wiphy, regd); in rtw_update_wiphy_regd() 231 ret = regulatory_set_wiphy_regd_sync_rtnl(wiphy, regd); in rtw_update_wiphy_regd() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/os_dep/linux/ |
| H A D | wifi_regd.c | 93 …_wiphy_regd(struct wiphy *wiphy, struct get_chplan_resp *chplan, struct ieee80211_regdomain **regd) in rtw_build_wiphy_regd() argument 104 if (regd) in rtw_build_wiphy_regd() 105 *regd = NULL; in rtw_build_wiphy_regd() 166 if (!regd) in rtw_build_wiphy_regd() 169 r = rtw_zmalloc(sizeof(**regd) + sizeof(struct ieee80211_reg_rule) * rule_num); in rtw_build_wiphy_regd() 181 *regd = r; in rtw_build_wiphy_regd() 211 struct ieee80211_regdomain *regd; in rtw_update_wiphy_regd() local 214 ret = rtw_build_wiphy_regd(wiphy, chplan, ®d); in rtw_update_wiphy_regd() 229 ret = regulatory_set_wiphy_regd_sync(wiphy, regd); in rtw_update_wiphy_regd() 231 ret = regulatory_set_wiphy_regd_sync_rtnl(wiphy, regd); in rtw_update_wiphy_regd() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ |
| H A D | regd.c | 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() 639 const struct ieee80211_regdomain *regd; in ath_regd_init_wiphy() local 650 regd = ath_world_regdomain(reg); in ath_regd_init_wiphy() 658 regd = ath_default_world_regdomain(); in ath_regd_init_wiphy() 661 wiphy_apply_custom_regulatory(wiphy, regd); in ath_regd_init_wiphy()
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8723bs/os_dep/ |
| H A D | wifi_regd.c | 127 const struct ieee80211_regdomain *regd; in _rtw_regd_init_wiphy() local 135 regd = _rtw_regdomain_select(reg); in _rtw_regd_init_wiphy() 136 wiphy_apply_custom_regulatory(wiphy, regd); in _rtw_regd_init_wiphy()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_cmdresp.c | 1032 struct ieee80211_regdomain *regd; in mwifiex_create_custom_regdomain() local 1042 regd = kzalloc(struct_size(regd, reg_rules, num_chan), GFP_KERNEL); in mwifiex_create_custom_regdomain() 1043 if (!regd) in mwifiex_create_custom_regdomain() 1052 kfree(regd); in mwifiex_create_custom_regdomain() 1083 rule = ®d->reg_rules[valid_rules - 1]; in mwifiex_create_custom_regdomain() 1106 regd->n_reg_rules = valid_rules; in mwifiex_create_custom_regdomain() 1107 regd->alpha2[0] = '9'; in mwifiex_create_custom_regdomain() 1108 regd->alpha2[1] = '9'; in mwifiex_create_custom_regdomain() 1110 return regd; in mwifiex_create_custom_regdomain() 1120 struct ieee80211_regdomain *regd; in mwifiex_ret_chan_region_cfg() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/core/ |
| H A D | rtw_chplan.c | 157 u8 regd; /* value of REGULATION_TXPWR_LMT */ member 161 #define CHPLAN_ENT(i2g, i5g, regd) {i2g, i5g, regd} argument 163 #define CHPLAN_ENT(i2g, i5g, regd) {i2g, regd} argument 387 u8 regd; in rtw_chplan_get_default_regd() local 390 regd = RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE.regd; in rtw_chplan_get_default_regd() 392 regd = RTW_ChannelPlanMap[id].regd; in rtw_chplan_get_default_regd() 394 return regd; in rtw_chplan_get_default_regd()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/core/ |
| H A D | rtw_chplan.c | 157 u8 regd; /* value of REGULATION_TXPWR_LMT */ member 161 #define CHPLAN_ENT(i2g, i5g, regd) {i2g, i5g, regd} argument 163 #define CHPLAN_ENT(i2g, i5g, regd) {i2g, regd} argument 387 u8 regd; in rtw_chplan_get_default_regd() local 390 regd = RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE.regd; in rtw_chplan_get_default_regd() 392 regd = RTW_ChannelPlanMap[id].regd; in rtw_chplan_get_default_regd() 394 return regd; in rtw_chplan_get_default_regd()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/core/ |
| H A D | rtw_chplan.c | 164 u8 regd; /* value of REGULATION_TXPWR_LMT */ member 168 #define CHPLAN_ENT(i2g, i5g, regd) {i2g, i5g, regd} argument 170 #define CHPLAN_ENT(i2g, i5g, regd) {i2g, regd} argument 401 u8 regd; in rtw_chplan_get_default_regd() local 404 regd = RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE.regd; in rtw_chplan_get_default_regd() 406 regd = RTW_ChannelPlanMap[id].regd; in rtw_chplan_get_default_regd() 408 return regd; in rtw_chplan_get_default_regd()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-nvm-parse.c | 1210 struct ieee80211_regdomain *regd, *copy_rd; in iwl_parse_nvm_mcc_info() local 1240 regd = kzalloc(struct_size(regd, reg_rules, num_of_ch), GFP_KERNEL); in iwl_parse_nvm_mcc_info() 1241 if (!regd) in iwl_parse_nvm_mcc_info() 1245 regd->alpha2[0] = fw_mcc >> 8; in iwl_parse_nvm_mcc_info() 1246 regd->alpha2[1] = fw_mcc & 0xff; in iwl_parse_nvm_mcc_info() 1275 rule = ®d->reg_rules[valid_rules - 1]; in iwl_parse_nvm_mcc_info() 1304 reg_query_regdb_wmm(regd->alpha2, center_freq, rule); in iwl_parse_nvm_mcc_info() 1307 regd->n_reg_rules = valid_rules; in iwl_parse_nvm_mcc_info() 1313 copy_rd = kmemdup(regd, struct_size(regd, reg_rules, valid_rules), in iwl_parse_nvm_mcc_info() 1318 kfree(regd); in iwl_parse_nvm_mcc_info()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| H A D | channel.c | 203 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 740 const struct brcms_regd *regd = wlc->cmi->world_regd; in brcms_c_regd_init() local 769 wiphy_apply_custom_regulatory(wlc->wiphy, regd->regdomain); in brcms_c_regd_init()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/include/ |
| H A D | rtw_rf.h | 170 #define regd_str(regd) (((regd) > TXPWR_LMT_WW) ? _regd_str[TXPWR_LMT_WW] : _regd_str[(regd)]) argument
|