Lines Matching refs:reg_rule
740 const struct ieee80211_reg_rule *reg_rule = NULL; in is_valid_rd() local
750 reg_rule = &rd->reg_rules[i]; in is_valid_rd()
751 if (!is_valid_reg_rule(reg_rule)) in is_valid_rd()
1096 const struct ieee80211_reg_rule *reg_rule = NULL; in __freq_reg_info() local
1100 reg_rule = freq_reg_info_regd(wiphy, center_freq, regd, bw); in __freq_reg_info()
1101 if (!IS_ERR(reg_rule)) in __freq_reg_info()
1102 return reg_rule; in __freq_reg_info()
1105 return reg_rule; in __freq_reg_info()
1135 const struct ieee80211_reg_rule *reg_rule) in chan_reg_rule_print_dbg() argument
1142 power_rule = ®_rule->power_rule; in chan_reg_rule_print_dbg()
1143 freq_range = ®_rule->freq_range; in chan_reg_rule_print_dbg()
1151 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in chan_reg_rule_print_dbg()
1154 reg_get_max_bandwidth(regd, reg_rule)); in chan_reg_rule_print_dbg()
1179 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel() local
1191 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in handle_channel()
1192 if (IS_ERR(reg_rule)) { in handle_channel()
1204 PTR_ERR(reg_rule) == -ERANGE) in handle_channel()
1223 chan_reg_rule_print_dbg(regd, chan, reg_rule); in handle_channel()
1225 power_rule = ®_rule->power_rule; in handle_channel()
1226 freq_range = ®_rule->freq_range; in handle_channel()
1230 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in handle_channel()
1231 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in handle_channel()
1261 map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel()
1269 if (reg_rule->dfs_cac_ms) in handle_channel()
1270 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel()
1280 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags); in handle_channel()
1287 if (reg_rule->dfs_cac_ms) in handle_channel()
1288 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel()
1761 const struct ieee80211_reg_rule *reg_rule = NULL; in handle_channel_custom() local
1768 reg_rule = freq_reg_info_regd(wiphy, in handle_channel_custom()
1771 if (!IS_ERR(reg_rule)) in handle_channel_custom()
1775 if (IS_ERR(reg_rule)) { in handle_channel_custom()
1787 chan_reg_rule_print_dbg(regd, chan, reg_rule); in handle_channel_custom()
1789 power_rule = ®_rule->power_rule; in handle_channel_custom()
1790 freq_range = ®_rule->freq_range; in handle_channel_custom()
1794 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in handle_channel_custom()
1795 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule); in handle_channel_custom()
1823 map_regdom_flags(reg_rule->flags); in handle_channel_custom()
1825 chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags; in handle_channel_custom()
1832 if (reg_rule->dfs_cac_ms) in handle_channel_custom()
1833 chan->dfs_cac_ms = reg_rule->dfs_cac_ms; in handle_channel_custom()
2761 const struct ieee80211_reg_rule *reg_rule = NULL; in print_rd_rules() local
2769 reg_rule = &rd->reg_rules[i]; in print_rd_rules()
2770 freq_range = ®_rule->freq_range; in print_rd_rules()
2771 power_rule = ®_rule->power_rule; in print_rd_rules()
2773 if (reg_rule->flags & NL80211_RRF_AUTO_BW) in print_rd_rules()
2776 reg_get_max_bandwidth(rd, reg_rule)); in print_rd_rules()
2781 if (reg_rule->flags & NL80211_RRF_DFS) in print_rd_rules()
2783 reg_rule->dfs_cac_ms/1000); in print_rd_rules()