Lines Matching refs:new_regd
210 if (ab->new_regd[pdev_id]) { in ath11k_regd_update()
211 regd = ab->new_regd[pdev_id]; in ath11k_regd_update()
389 struct ieee80211_regdomain *new_regd = NULL; in ath11k_regd_intersect() local
410 new_regd = kzalloc(sizeof(*new_regd) + (num_new_regd_rules * in ath11k_regd_intersect()
414 if (!new_regd) in ath11k_regd_intersect()
421 new_regd->n_reg_rules = num_new_regd_rules; in ath11k_regd_intersect()
422 memcpy(new_regd->alpha2, curr_regd->alpha2, sizeof(new_regd->alpha2)); in ath11k_regd_intersect()
423 new_regd->dfs_region = curr_regd->dfs_region; in ath11k_regd_intersect()
424 new_rule = new_regd->reg_rules; in ath11k_regd_intersect()
436 return new_regd; in ath11k_regd_intersect()
566 struct ieee80211_regdomain *tmp_regd, *default_regd, *new_regd = NULL; in ath11k_reg_build_regd() local
664 new_regd = ath11k_regd_intersect(default_regd, tmp_regd); in ath11k_reg_build_regd()
666 if (!new_regd) { in ath11k_reg_build_regd()
671 new_regd = tmp_regd; in ath11k_reg_build_regd()
675 return new_regd; in ath11k_reg_build_regd()
707 kfree(ab->new_regd[i]); in ath11k_reg_free()