Lines Matching refs:reg_rule
1292 const struct ieee80211_reg_rule *reg_rule = NULL;
1302 reg_rule = &rd->reg_rules[i];
1303 if (!is_valid_reg_rule(reg_rule))
1674 const struct ieee80211_reg_rule *reg_rule = ERR_PTR(-ERANGE);
1679 reg_rule = freq_reg_info_regd(center_freq, regd, bw);
1680 if (!IS_ERR(reg_rule))
1681 return reg_rule;
1684 return reg_rule;
1715 const struct ieee80211_reg_rule *reg_rule,
1722 freq_range = ®_rule->freq_range;
1727 if (reg_rule->flags & NL80211_RRF_AUTO_BW)
1728 max_bandwidth_khz = reg_get_max_bandwidth(regd, reg_rule);
1730 /* If we get a reg_rule we can assume that at least 5Mhz fit */
1802 const struct ieee80211_reg_rule *reg_rule)
1810 power_rule = ®_rule->power_rule;
1811 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan);
1822 map_regdom_flags(reg_rule->flags) | bw_flags;
1830 if (reg_rule->dfs_cac_ms)
1831 chan->dfs_cac_ms = reg_rule->dfs_cac_ms;
1841 chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags);
1848 if (reg_rule->dfs_cac_ms)
1849 chan->dfs_cac_ms = reg_rule->dfs_cac_ms;
2317 const struct ieee80211_reg_rule *reg_rule =
2321 if (!IS_ERR(reg_rule))
2322 flags = reg_rule->flags;
2565 const struct ieee80211_reg_rule *reg_rule = NULL;
2571 reg_rule = freq_reg_info_regd(center_freq_khz, regd, bw);
2572 if (!IS_ERR(reg_rule))
2576 if (IS_ERR_OR_NULL(reg_rule)) {
2588 power_rule = ®_rule->power_rule;
2589 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan);
2598 map_regdom_flags(reg_rule->flags);
2600 chan->flags |= map_regdom_flags(reg_rule->flags) | bw_flags;
2607 if (reg_rule->dfs_cac_ms)
2608 chan->dfs_cac_ms = reg_rule->dfs_cac_ms;
3723 const struct ieee80211_reg_rule *reg_rule = NULL;
3731 reg_rule = &rd->reg_rules[i];
3732 freq_range = ®_rule->freq_range;
3733 power_rule = ®_rule->power_rule;
3735 if (reg_rule->flags & NL80211_RRF_AUTO_BW)
3738 reg_get_max_bandwidth(rd, reg_rule));
3743 if (reg_rule->flags & NL80211_RRF_DFS)
3745 reg_rule->dfs_cac_ms/1000);