Lines Matching refs:new_rule
347 struct ieee80211_reg_rule *new_rule) in ath12k_reg_intersect_rules() argument
359 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath12k_reg_intersect_rules()
361 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath12k_reg_intersect_rules()
363 freq_diff = new_rule->freq_range.end_freq_khz - in ath12k_reg_intersect_rules()
364 new_rule->freq_range.start_freq_khz; in ath12k_reg_intersect_rules()
367 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath12k_reg_intersect_rules()
369 new_rule->power_rule.max_antenna_gain = in ath12k_reg_intersect_rules()
373 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath12k_reg_intersect_rules()
377 new_rule->flags = rule1->flags | rule2->flags; in ath12k_reg_intersect_rules()
380 new_rule->dfs_cac_ms = max_t(u32, rule1->dfs_cac_ms, in ath12k_reg_intersect_rules()
389 struct ieee80211_reg_rule *old_rule, *curr_rule, *new_rule; in ath12k_regd_intersect() local
425 new_rule = new_regd->reg_rules; in ath12k_regd_intersect()
434 (new_rule + k++)); in ath12k_regd_intersect()