Lines Matching refs:reg_rule

1224 	const struct ieee80211_reg_rule *reg_rule = NULL;  in is_valid_rd()  local
1234 reg_rule = &rd->reg_rules[i]; in is_valid_rd()
1235 if (!is_valid_reg_rule(reg_rule)) in is_valid_rd()
1565 const struct ieee80211_reg_rule *reg_rule = NULL; in __freq_reg_info() local
1569 reg_rule = freq_reg_info_regd(center_freq, regd, bw); in __freq_reg_info()
1570 if (!IS_ERR(reg_rule)) in __freq_reg_info()
1571 return reg_rule; in __freq_reg_info()
1574 return reg_rule; in __freq_reg_info()
1603 const struct ieee80211_reg_rule *reg_rule, in reg_rule_to_chan_bw_flags() argument
1609 freq_range = &reg_rule->freq_range; in reg_rule_to_chan_bw_flags()
1613 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in reg_rule_to_chan_bw_flags()
1614 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in reg_rule_to_chan_bw_flags()
1649 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel() local
1659 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in handle_channel()
1660 if (IS_ERR(reg_rule)) { in handle_channel()
1672 PTR_ERR(reg_rule) == -ERANGE) in handle_channel()
1692 power_rule = &reg_rule->power_rule; in handle_channel()
1693 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel()
1704 map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel()
1712 if (reg_rule->dfs_cac_ms) in handle_channel()
1713 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel()
1723 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags); in handle_channel()
1730 if (reg_rule->dfs_cac_ms) in handle_channel()
1731 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel()
2001 const struct ieee80211_reg_rule *reg_rule = in reg_process_ht_flags_channel() local
2005 if (!IS_ERR(reg_rule)) in reg_process_ht_flags_channel()
2006 flags = reg_rule->flags; in reg_process_ht_flags_channel()
2215 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel_custom() local
2220 reg_rule = freq_reg_info_regd(MHZ_TO_KHZ(chan->center_freq), in handle_channel_custom()
2222 if (!IS_ERR(reg_rule)) in handle_channel_custom()
2226 if (IS_ERR(reg_rule)) { in handle_channel_custom()
2238 power_rule = &reg_rule->power_rule; in handle_channel_custom()
2239 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel_custom()
2248 map_regdom_flags(reg_rule->flags); in handle_channel_custom()
2250 chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel_custom()
2257 if (reg_rule->dfs_cac_ms) in handle_channel_custom()
2258 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_custom()
3263 const struct ieee80211_reg_rule *reg_rule = NULL; in print_rd_rules() local
3271 reg_rule = &rd->reg_rules[i]; in print_rd_rules()
3272 freq_range = &reg_rule->freq_range; in print_rd_rules()
3273 power_rule = &reg_rule->power_rule; in print_rd_rules()
3275 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in print_rd_rules()
3278 reg_get_max_bandwidth(rd, reg_rule)); in print_rd_rules()
3283 if (reg_rule->flags & NL80211_RRF_DFS) in print_rd_rules()
3285 reg_rule->dfs_cac_ms/1000); in print_rd_rules()