Lines Matching refs:reg_rule
1250 const struct ieee80211_reg_rule *reg_rule = NULL; in is_valid_rd() local
1260 reg_rule = &rd->reg_rules[i]; in is_valid_rd()
1261 if (!is_valid_reg_rule(reg_rule)) in is_valid_rd()
1630 const struct ieee80211_reg_rule *reg_rule; in __freq_reg_info() local
1635 reg_rule = freq_reg_info_regd(center_freq, regd, bw); in __freq_reg_info()
1636 if (!IS_ERR(reg_rule)) in __freq_reg_info()
1637 return reg_rule; in __freq_reg_info()
1640 return reg_rule; in __freq_reg_info()
1671 const struct ieee80211_reg_rule *reg_rule, in reg_rule_to_chan_bw_flags() argument
1678 freq_range = ®_rule->freq_range; in reg_rule_to_chan_bw_flags()
1683 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in reg_rule_to_chan_bw_flags()
1684 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in reg_rule_to_chan_bw_flags()
1756 const struct ieee80211_reg_rule *reg_rule) in handle_channel_single_rule() argument
1764 power_rule = ®_rule->power_rule; in handle_channel_single_rule()
1765 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel_single_rule()
1776 map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel_single_rule()
1784 if (reg_rule->dfs_cac_ms) in handle_channel_single_rule()
1785 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_single_rule()
1795 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags); in handle_channel_single_rule()
1802 if (reg_rule->dfs_cac_ms) in handle_channel_single_rule()
1803 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_single_rule()
2271 const struct ieee80211_reg_rule *reg_rule = in reg_process_ht_flags_channel() local
2275 if (!IS_ERR(reg_rule)) in reg_process_ht_flags_channel()
2276 flags = reg_rule->flags; in reg_process_ht_flags_channel()
2486 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel_custom() local
2492 reg_rule = freq_reg_info_regd(center_freq_khz, regd, bw); in handle_channel_custom()
2493 if (!IS_ERR(reg_rule)) in handle_channel_custom()
2497 if (IS_ERR_OR_NULL(reg_rule)) { in handle_channel_custom()
2509 power_rule = ®_rule->power_rule; in handle_channel_custom()
2510 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel_custom()
2519 map_regdom_flags(reg_rule->flags); in handle_channel_custom()
2521 chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel_custom()
2528 if (reg_rule->dfs_cac_ms) in handle_channel_custom()
2529 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_custom()
3616 const struct ieee80211_reg_rule *reg_rule = NULL; in print_rd_rules() local
3624 reg_rule = &rd->reg_rules[i]; in print_rd_rules()
3625 freq_range = ®_rule->freq_range; in print_rd_rules()
3626 power_rule = ®_rule->power_rule; in print_rd_rules()
3628 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in print_rd_rules()
3631 reg_get_max_bandwidth(rd, reg_rule)); in print_rd_rules()
3636 if (reg_rule->flags & NL80211_RRF_DFS) in print_rd_rules()
3638 reg_rule->dfs_cac_ms/1000); in print_rd_rules()