Lines Matching refs:regd

143 	return rcu_dereference_rtnl(wiphy->regd);  in get_wiphy_regdom()
163 const struct ieee80211_regdomain *regd = NULL; in reg_get_dfs_region() local
166 regd = get_cfg80211_regdom(); in reg_get_dfs_region()
174 if (wiphy_regd->dfs_region == regd->dfs_region) in reg_get_dfs_region()
180 reg_dfs_region_str(regd->dfs_region)); in reg_get_dfs_region()
183 return regd->dfs_region; in reg_get_dfs_region()
427 struct ieee80211_regdomain *regd; in reg_copy_regd() local
435 regd = kzalloc(size_of_regd, GFP_KERNEL); in reg_copy_regd()
436 if (!regd) in reg_copy_regd()
439 memcpy(regd, src_regd, sizeof(struct ieee80211_regdomain)); in reg_copy_regd()
442 memcpy(&regd->reg_rules[i], &src_regd->reg_rules[i], in reg_copy_regd()
445 return regd; in reg_copy_regd()
1124 wiphy->regd) in reg_get_regdomain()
1525 const struct ieee80211_regdomain *regd, u32 bw) in freq_reg_info_regd() argument
1531 if (!regd) in freq_reg_info_regd()
1534 for (i = 0; i < regd->n_reg_rules; i++) { in freq_reg_info_regd()
1538 rr = &regd->reg_rules[i]; in freq_reg_info_regd()
1564 const struct ieee80211_regdomain *regd = reg_get_regdomain(wiphy); in __freq_reg_info() local
1569 reg_rule = freq_reg_info_regd(center_freq, regd, bw); in __freq_reg_info()
1602 static uint32_t reg_rule_to_chan_bw_flags(const struct ieee80211_regdomain *regd, in reg_rule_to_chan_bw_flags() argument
1614 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in reg_rule_to_chan_bw_flags()
1653 const struct ieee80211_regdomain *regd; in handle_channel() local
1690 regd = reg_get_regdomain(wiphy); in handle_channel()
1693 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel()
1844 if (wiphy_strict_alpha2_regd(wiphy) && !wiphy->regd && in ignore_reg_update()
1976 const struct ieee80211_regdomain *regd; in reg_process_ht_flags_channel() local
1999 regd = get_wiphy_regdom(wiphy); in reg_process_ht_flags_channel()
2000 if (regd) { in reg_process_ht_flags_channel()
2003 regd, MHZ_TO_KHZ(20)); in reg_process_ht_flags_channel()
2212 const struct ieee80211_regdomain *regd) in handle_channel_custom() argument
2221 regd, bw); in handle_channel_custom()
2239 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel_custom()
2268 const struct ieee80211_regdomain *regd) in handle_band_custom() argument
2276 handle_channel_custom(wiphy, &sband->channels[i], regd); in handle_band_custom()
2281 const struct ieee80211_regdomain *regd) in wiphy_apply_custom_regulatory() argument
2293 handle_band_custom(wiphy, wiphy->bands[band], regd); in wiphy_apply_custom_regulatory()
2445 const struct ieee80211_regdomain *regd, *tmp; in reg_process_hint_driver() local
2457 regd = reg_copy_regd(get_cfg80211_regdom()); in reg_process_hint_driver()
2458 if (IS_ERR(regd)) in reg_process_hint_driver()
2462 rcu_assign_pointer(wiphy->regd, regd); in reg_process_hint_driver()
2587 wiphy1_regd = rcu_dereference(wiphy1->regd); in reg_dfs_domain_same()
2591 wiphy2_regd = rcu_dereference(wiphy2->regd); in reg_dfs_domain_same()
2800 const struct ieee80211_regdomain *regd; in reg_process_self_managed_hints() local
2808 regd = rdev->requested_regd; in reg_process_self_managed_hints()
2812 if (regd == NULL) in reg_process_self_managed_hints()
2816 rcu_assign_pointer(wiphy->regd, regd); in reg_process_self_managed_hints()
2820 handle_band_custom(wiphy, wiphy->bands[band], regd); in reg_process_self_managed_hints()
2825 request.alpha2[0] = regd->alpha2[0]; in reg_process_self_managed_hints()
2826 request.alpha2[1] = regd->alpha2[1]; in reg_process_self_managed_hints()
3409 const struct ieee80211_regdomain *regd; in reg_set_rd_driver() local
3432 if (request_wiphy->regd) in reg_set_rd_driver()
3435 regd = reg_copy_regd(rd); in reg_set_rd_driver()
3436 if (IS_ERR(regd)) in reg_set_rd_driver()
3437 return PTR_ERR(regd); in reg_set_rd_driver()
3439 rcu_assign_pointer(request_wiphy->regd, regd); in reg_set_rd_driver()
3454 rcu_assign_pointer(request_wiphy->regd, rd); in reg_set_rd_driver()
3573 const struct ieee80211_regdomain *regd; in __regulatory_set_wiphy_regd() local
3589 regd = reg_copy_regd(rd); in __regulatory_set_wiphy_regd()
3590 if (IS_ERR(regd)) in __regulatory_set_wiphy_regd()
3591 return PTR_ERR(regd); in __regulatory_set_wiphy_regd()
3597 rdev->requested_regd = regd; in __regulatory_set_wiphy_regd()
3671 RCU_INIT_POINTER(wiphy->regd, NULL); in wiphy_regulatory_deregister()
3719 const struct ieee80211_regdomain *regd = NULL; in regulatory_pre_cac_allowed() local
3725 regd = rcu_dereference(cfg80211_regdomain); in regulatory_pre_cac_allowed()
3726 wiphy_regd = rcu_dereference(wiphy->regd); in regulatory_pre_cac_allowed()
3728 if (regd->dfs_region == NL80211_DFS_ETSI) in regulatory_pre_cac_allowed()
3736 if (regd->dfs_region == wiphy_regd->dfs_region && in regulatory_pre_cac_allowed()