Lines Matching refs:reg_rule

1240 	const struct ieee80211_reg_rule *reg_rule = NULL;  in is_valid_rd()  local
1250 reg_rule = &rd->reg_rules[i]; in is_valid_rd()
1251 if (!is_valid_reg_rule(reg_rule)) in is_valid_rd()
1617 const struct ieee80211_reg_rule *reg_rule = NULL; in __freq_reg_info() local
1621 reg_rule = freq_reg_info_regd(center_freq, regd, bw); in __freq_reg_info()
1622 if (!IS_ERR(reg_rule)) in __freq_reg_info()
1623 return reg_rule; in __freq_reg_info()
1626 return reg_rule; in __freq_reg_info()
1655 const struct ieee80211_reg_rule *reg_rule, in reg_rule_to_chan_bw_flags() argument
1661 freq_range = &reg_rule->freq_range; in reg_rule_to_chan_bw_flags()
1665 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in reg_rule_to_chan_bw_flags()
1666 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in reg_rule_to_chan_bw_flags()
1701 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel() local
1711 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in handle_channel()
1712 if (IS_ERR(reg_rule)) { in handle_channel()
1724 PTR_ERR(reg_rule) == -ERANGE) in handle_channel()
1744 power_rule = &reg_rule->power_rule; in handle_channel()
1745 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel()
1756 map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel()
1764 if (reg_rule->dfs_cac_ms) in handle_channel()
1765 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel()
1775 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags); in handle_channel()
1782 if (reg_rule->dfs_cac_ms) in handle_channel()
1783 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel()
2053 const struct ieee80211_reg_rule *reg_rule = in reg_process_ht_flags_channel() local
2057 if (!IS_ERR(reg_rule)) in reg_process_ht_flags_channel()
2058 flags = reg_rule->flags; in reg_process_ht_flags_channel()
2267 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel_custom() local
2272 reg_rule = freq_reg_info_regd(MHZ_TO_KHZ(chan->center_freq), in handle_channel_custom()
2274 if (!IS_ERR(reg_rule)) in handle_channel_custom()
2278 if (IS_ERR(reg_rule)) { in handle_channel_custom()
2290 power_rule = &reg_rule->power_rule; in handle_channel_custom()
2291 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel_custom()
2300 map_regdom_flags(reg_rule->flags); in handle_channel_custom()
2302 chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel_custom()
2309 if (reg_rule->dfs_cac_ms) in handle_channel_custom()
2310 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_custom()
3385 const struct ieee80211_reg_rule *reg_rule = NULL; in print_rd_rules() local
3393 reg_rule = &rd->reg_rules[i]; in print_rd_rules()
3394 freq_range = &reg_rule->freq_range; in print_rd_rules()
3395 power_rule = &reg_rule->power_rule; in print_rd_rules()
3397 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in print_rd_rules()
3400 reg_get_max_bandwidth(rd, reg_rule)); in print_rd_rules()
3405 if (reg_rule->flags & NL80211_RRF_DFS) in print_rd_rules()
3407 reg_rule->dfs_cac_ms/1000); in print_rd_rules()