Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
- index c272b290fa73..e85c3f107d2e 100644
- --- a/drivers/net/wireless/ath/ath10k/mac.c
- +++ b/drivers/net/wireless/ath/ath10k/mac.c
- @@ -5576,15 +5576,17 @@ static int ath10k_add_interface(struct ieee80211_hw *hw,
- if (vif->type == NL80211_IFTYPE_ADHOC ||
- vif->type == NL80211_IFTYPE_MESH_POINT ||
- vif->type == NL80211_IFTYPE_AP) {
- - arvif->beacon_buf = dma_alloc_coherent(ar->dev,
- - IEEE80211_MAX_FRAME_LEN,
- - &arvif->beacon_paddr,
- - GFP_ATOMIC);
- - if (!arvif->beacon_buf) {
- - ret = -ENOMEM;
- - ath10k_warn(ar, "failed to allocate beacon buffer: %d\n",
- - ret);
- - goto err;
- + if (!(ar->hif.bus == ATH10K_BUS_SDIO) && !(ar->hif.bus == ATH10K_BUS_USB)) {
- + arvif->beacon_buf = dma_alloc_coherent(ar->dev,
- + IEEE80211_MAX_FRAME_LEN,
- + &arvif->beacon_paddr,
- + GFP_ATOMIC);
- + if (!arvif->beacon_buf) {
- + ret = -ENOMEM;
- + ath10k_warn(ar, "failed to allocate beacon buffer: %d\n",
- + ret);
- + goto err;
- + }
- }
- }
- if (test_bit(ATH10K_FLAG_HW_CRYPTO_DISABLED, &ar->dev_flags))
- --
- 2.25.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement