diff options
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 8385a7ad02ac..22e82398c45b 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c | |||
@@ -2771,6 +2771,9 @@ static void ath10k_remove_interface(struct ieee80211_hw *hw, | |||
2771 | 2771 | ||
2772 | spin_lock_bh(&ar->data_lock); | 2772 | spin_lock_bh(&ar->data_lock); |
2773 | if (arvif->beacon) { | 2773 | if (arvif->beacon) { |
2774 | dma_unmap_single(arvif->ar->dev, | ||
2775 | ATH10K_SKB_CB(arvif->beacon)->paddr, | ||
2776 | arvif->beacon->len, DMA_TO_DEVICE); | ||
2774 | dev_kfree_skb_any(arvif->beacon); | 2777 | dev_kfree_skb_any(arvif->beacon); |
2775 | arvif->beacon = NULL; | 2778 | arvif->beacon = NULL; |
2776 | } | 2779 | } |