Lines Matching refs:reg_rule

1255 	const struct ieee80211_reg_rule *reg_rule = NULL;  in is_valid_rd()  local
1265 reg_rule = &rd->reg_rules[i]; in is_valid_rd()
1266 if (!is_valid_reg_rule(reg_rule)) in is_valid_rd()
1654 const struct ieee80211_reg_rule *reg_rule = ERR_PTR(-ERANGE); in __freq_reg_info() local
1659 reg_rule = freq_reg_info_regd(center_freq, regd, bw); in __freq_reg_info()
1660 if (!IS_ERR(reg_rule)) in __freq_reg_info()
1661 return reg_rule; in __freq_reg_info()
1664 return reg_rule; in __freq_reg_info()
1695 const struct ieee80211_reg_rule *reg_rule, in reg_rule_to_chan_bw_flags() argument
1702 freq_range = &reg_rule->freq_range; in reg_rule_to_chan_bw_flags()
1707 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in reg_rule_to_chan_bw_flags()
1708 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in reg_rule_to_chan_bw_flags()
1752 const struct ieee80211_reg_rule *reg_rule) in handle_channel_single_rule() argument
1760 power_rule = &reg_rule->power_rule; in handle_channel_single_rule()
1761 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel_single_rule()
1772 map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel_single_rule()
1780 if (reg_rule->dfs_cac_ms) in handle_channel_single_rule()
1781 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_single_rule()
1785 chan->psd = reg_rule->psd; in handle_channel_single_rule()
1794 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags); in handle_channel_single_rule()
1801 if (reg_rule->dfs_cac_ms) in handle_channel_single_rule()
1802 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_single_rule()
1808 chan->psd = reg_rule->psd; in handle_channel_single_rule()
2290 const struct ieee80211_reg_rule *reg_rule = in reg_process_ht_flags_channel() local
2294 if (!IS_ERR(reg_rule)) in reg_process_ht_flags_channel()
2295 flags = reg_rule->flags; in reg_process_ht_flags_channel()
2532 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel_custom() local
2538 reg_rule = freq_reg_info_regd(center_freq_khz, regd, bw); in handle_channel_custom()
2539 if (!IS_ERR(reg_rule)) in handle_channel_custom()
2543 if (IS_ERR_OR_NULL(reg_rule)) { in handle_channel_custom()
2555 power_rule = &reg_rule->power_rule; in handle_channel_custom()
2556 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel_custom()
2565 map_regdom_flags(reg_rule->flags); in handle_channel_custom()
2567 chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel_custom()
2574 if (reg_rule->dfs_cac_ms) in handle_channel_custom()
2575 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_custom()
2581 chan->psd = reg_rule->psd; in handle_channel_custom()
3694 const struct ieee80211_reg_rule *reg_rule = NULL; in print_rd_rules() local
3702 reg_rule = &rd->reg_rules[i]; in print_rd_rules()
3703 freq_range = &reg_rule->freq_range; in print_rd_rules()
3704 power_rule = &reg_rule->power_rule; in print_rd_rules()
3706 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in print_rd_rules()
3709 reg_get_max_bandwidth(rd, reg_rule)); in print_rd_rules()
3714 if (reg_rule->flags & NL80211_RRF_DFS) in print_rd_rules()
3716 reg_rule->dfs_cac_ms/1000); in print_rd_rules()