Lines Matching refs:reg_rule
1240 const struct ieee80211_reg_rule *reg_rule = NULL;
1250 reg_rule = &rd->reg_rules[i];
1251 if (!is_valid_reg_rule(reg_rule))
1620 const struct ieee80211_reg_rule *reg_rule;
1625 reg_rule = freq_reg_info_regd(center_freq, regd, bw);
1626 if (!IS_ERR(reg_rule))
1627 return reg_rule;
1630 return reg_rule;
1661 const struct ieee80211_reg_rule *reg_rule,
1668 freq_range = ®_rule->freq_range;
1673 if (reg_rule->flags & NL80211_RRF_AUTO_BW)
1674 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule);
1676 /* If we get a reg_rule we can assume that at least 5Mhz fit */
1746 const struct ieee80211_reg_rule *reg_rule)
1754 power_rule = ®_rule->power_rule;
1755 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan);
1766 map_regdom_flags(reg_rule->flags) | bw_flags;
1774 if (reg_rule->dfs_cac_ms)
1775 chan->dfs_cac_ms = reg_rule->dfs_cac_ms;
1785 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags);
1792 if (reg_rule->dfs_cac_ms)
1793 chan->dfs_cac_ms = reg_rule->dfs_cac_ms;
2261 const struct ieee80211_reg_rule *reg_rule =
2265 if (!IS_ERR(reg_rule))
2266 flags = reg_rule->flags;
2476 const struct ieee80211_reg_rule *reg_rule = NULL;
2482 reg_rule = freq_reg_info_regd(center_freq_khz, regd, bw);
2483 if (!IS_ERR(reg_rule))
2487 if (IS_ERR_OR_NULL(reg_rule)) {
2499 power_rule = ®_rule->power_rule;
2500 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan);
2509 map_regdom_flags(reg_rule->flags);
2511 chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags;
2518 if (reg_rule->dfs_cac_ms)
2519 chan->dfs_cac_ms = reg_rule->dfs_cac_ms;
3606 const struct ieee80211_reg_rule *reg_rule = NULL;
3614 reg_rule = &rd->reg_rules[i];
3615 freq_range = ®_rule->freq_range;
3616 power_rule = ®_rule->power_rule;
3618 if (reg_rule->flags & NL80211_RRF_AUTO_BW)
3621 reg_get_max_bandwidth(rd, reg_rule));
3626 if (reg_rule->flags & NL80211_RRF_DFS)
3628 reg_rule->dfs_cac_ms/1000);