af375b151b81dd118db0a8c317d086c87cb8ae7b
[openwrt/staging/yousong.git] / package / mac80211 / patches / 570-ath_use_gfp_dma.patch
1 --- a/drivers/net/wireless/ath/main.c
2 +++ b/drivers/net/wireless/ath/main.c
3 @@ -43,7 +43,7 @@ struct sk_buff *ath_rxbuf_alloc(struct a
4 * Unfortunately this means we may get 8 KB here from the
5 * kernel... and that is actually what is observed on some
6 * systems :( */
7 - skb = __dev_alloc_skb(len + common->cachelsz - 1, gfp_mask);
8 + skb = __dev_alloc_skb(len + common->cachelsz - 1, gfp_mask | GFP_DMA);
9 if (skb != NULL) {
10 off = ((unsigned long) skb->data) % common->cachelsz;
11 if (off != 0)