Lines Matching refs:new_rule
385 struct ieee80211_reg_rule *new_rule) in ath11k_reg_intersect_rules() argument
397 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath11k_reg_intersect_rules()
399 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules()
401 freq_diff = new_rule->freq_range.end_freq_khz - in ath11k_reg_intersect_rules()
402 new_rule->freq_range.start_freq_khz; in ath11k_reg_intersect_rules()
405 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath11k_reg_intersect_rules()
407 new_rule->power_rule.max_antenna_gain = in ath11k_reg_intersect_rules()
411 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath11k_reg_intersect_rules()
415 new_rule->flags = rule1->flags | rule2->flags; in ath11k_reg_intersect_rules()
418 new_rule->dfs_cac_ms = max_t(u32, rule1->dfs_cac_ms, in ath11k_reg_intersect_rules()
427 struct ieee80211_reg_rule *old_rule, *curr_rule, *new_rule; in ath11k_regd_intersect() local
463 new_rule = new_regd->reg_rules; in ath11k_regd_intersect()
472 (new_rule + k++)); in ath11k_regd_intersect()