Lines Matching refs:reg_rule

691 	const struct ieee80211_reg_rule *reg_rule = NULL;  in is_valid_rd()  local
701 reg_rule = &rd->reg_rules[i]; in is_valid_rd()
702 if (!is_valid_reg_rule(reg_rule)) in is_valid_rd()
1075 const struct ieee80211_reg_rule *reg_rule) in chan_reg_rule_print_dbg() argument
1081 power_rule = &reg_rule->power_rule; in chan_reg_rule_print_dbg()
1082 freq_range = &reg_rule->freq_range; in chan_reg_rule_print_dbg()
1090 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in chan_reg_rule_print_dbg()
1093 reg_get_max_bandwidth(regd, reg_rule)); in chan_reg_rule_print_dbg()
1109 const struct ieee80211_reg_rule *reg_rule) in chan_reg_rule_print_dbg() argument
1125 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel() local
1137 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in handle_channel()
1138 if (IS_ERR(reg_rule)) { in handle_channel()
1150 PTR_ERR(reg_rule) == -ERANGE) in handle_channel()
1169 chan_reg_rule_print_dbg(regd, chan, reg_rule); in handle_channel()
1171 power_rule = &reg_rule->power_rule; in handle_channel()
1172 freq_range = &reg_rule->freq_range; in handle_channel()
1176 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in handle_channel()
1177 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in handle_channel()
1195 map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel()
1203 if (reg_rule->dfs_cac_ms) in handle_channel()
1204 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel()
1214 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags); in handle_channel()
1221 if (reg_rule->dfs_cac_ms) in handle_channel()
1222 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel()
1694 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel_custom() local
1699 reg_rule = freq_reg_info_regd(wiphy, MHZ_TO_KHZ(chan->center_freq), in handle_channel_custom()
1702 if (IS_ERR(reg_rule)) { in handle_channel_custom()
1714 chan_reg_rule_print_dbg(regd, chan, reg_rule); in handle_channel_custom()
1716 power_rule = &reg_rule->power_rule; in handle_channel_custom()
1717 freq_range = &reg_rule->freq_range; in handle_channel_custom()
1721 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in handle_channel_custom()
1722 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in handle_channel_custom()
1738 map_regdom_flags(reg_rule->flags); in handle_channel_custom()
1740 chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel_custom()
1747 if (reg_rule->dfs_cac_ms) in handle_channel_custom()
1748 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_custom()
2672 const struct ieee80211_reg_rule *reg_rule = NULL; in print_rd_rules() local
2680 reg_rule = &rd->reg_rules[i]; in print_rd_rules()
2681 freq_range = &reg_rule->freq_range; in print_rd_rules()
2682 power_rule = &reg_rule->power_rule; in print_rd_rules()
2684 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in print_rd_rules()
2687 reg_get_max_bandwidth(rd, reg_rule)); in print_rd_rules()
2692 if (reg_rule->flags & NL80211_RRF_DFS) in print_rd_rules()
2694 reg_rule->dfs_cac_ms/1000); in print_rd_rules()