ath10k: fix kernel panic while shutting down AP
[cascardo/linux.git] / drivers / net / wireless / ath / ath10k / mac.c
index 1191857..b2bd80c 100644 (file)
@@ -2839,7 +2839,7 @@ static int ath10k_add_interface(struct ieee80211_hw *hw,
                arvif->beacon_buf = dma_zalloc_coherent(ar->dev,
                                                        IEEE80211_MAX_FRAME_LEN,
                                                        &arvif->beacon_paddr,
-                                                       GFP_KERNEL);
+                                                       GFP_ATOMIC);
                if (!arvif->beacon_buf) {
                        ret = -ENOMEM;
                        ath10k_warn(ar, "failed to allocate beacon buffer: %d\n",