Lines Matching refs:new_regd
253 if (ab->new_regd[pdev_id]) { in ath11k_regd_update()
254 regd = ab->new_regd[pdev_id]; in ath11k_regd_update()
428 struct ieee80211_regdomain *new_regd = NULL; in ath11k_regd_intersect() local
449 new_regd = kzalloc(sizeof(*new_regd) + (num_new_regd_rules * in ath11k_regd_intersect()
453 if (!new_regd) in ath11k_regd_intersect()
460 new_regd->n_reg_rules = num_new_regd_rules; in ath11k_regd_intersect()
461 memcpy(new_regd->alpha2, curr_regd->alpha2, sizeof(new_regd->alpha2)); in ath11k_regd_intersect()
462 new_regd->dfs_region = curr_regd->dfs_region; in ath11k_regd_intersect()
463 new_rule = new_regd->reg_rules; in ath11k_regd_intersect()
475 return new_regd; in ath11k_regd_intersect()
614 struct ieee80211_regdomain *tmp_regd, *default_regd, *new_regd = NULL; in ath11k_reg_build_regd() local
712 new_regd = ath11k_regd_intersect(default_regd, tmp_regd); in ath11k_reg_build_regd()
714 if (!new_regd) { in ath11k_reg_build_regd()
719 new_regd = tmp_regd; in ath11k_reg_build_regd()
723 return new_regd; in ath11k_reg_build_regd()
755 kfree(ab->new_regd[i]); in ath11k_reg_free()