Home
last modified time | relevance | path

Searched refs:regd_copy (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Dreg.c230 struct ieee80211_regdomain *regd_copy) in ath11k_copy_regd() argument
235 memcpy(regd_copy, regd_orig, sizeof(*regd_orig)); in ath11k_copy_regd()
238 memcpy(&regd_copy->reg_rules[i], &regd_orig->reg_rules[i], in ath11k_copy_regd()
244 struct ieee80211_regdomain *regd, *regd_copy = NULL; in ath11k_regd_update() local
280 regd_copy = kzalloc(regd_len, GFP_ATOMIC); in ath11k_regd_update()
281 if (regd_copy) in ath11k_regd_update()
282 ath11k_copy_regd(regd, regd_copy); in ath11k_regd_update()
286 if (!regd_copy) { in ath11k_regd_update()
291 ret = regulatory_set_wiphy_regd(ar->hw->wiphy, regd_copy); in ath11k_regd_update()
293 kfree(regd_copy); in ath11k_regd_update()
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dreg.c188 struct ieee80211_regdomain *regd_copy) in ath12k_copy_regd() argument
193 memcpy(regd_copy, regd_orig, sizeof(*regd_orig)); in ath12k_copy_regd()
196 memcpy(&regd_copy->reg_rules[i], &regd_orig->reg_rules[i], in ath12k_copy_regd()
202 struct ieee80211_regdomain *regd, *regd_copy = NULL; in ath12k_regd_update() local
237 regd_copy = kzalloc(regd_len, GFP_ATOMIC); in ath12k_regd_update()
238 if (regd_copy) in ath12k_regd_update()
239 ath12k_copy_regd(regd, regd_copy); in ath12k_regd_update()
243 if (!regd_copy) { in ath12k_regd_update()
250 ret = regulatory_set_wiphy_regd_sync(ar->hw->wiphy, regd_copy); in ath12k_regd_update()
254 kfree(regd_copy); in ath12k_regd_update()