Search Linux Wireless

Re: r8712u driver - on ARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian,

Most of the skb assignments in r8712u are aligned OK and most aligned on 512-byte boundaries, but there was one that had the minimal offset of 14 bytes. The attached patch should fix it. Does it help?

Larry

Index: wireless-testing-new/drivers/staging/rtl8712/rtl8712_recv.c
===================================================================
--- wireless-testing-new.orig/drivers/staging/rtl8712/rtl8712_recv.c
+++ wireless-testing-new/drivers/staging/rtl8712/rtl8712_recv.c
@@ -372,8 +372,8 @@ static int amsdu_to_msdu(struct _adapter
 		pdata += ETH_HLEN;
 		a_len -= ETH_HLEN;
 		/* Allocate new skb for releasing to upper layer */
-		sub_skb = dev_alloc_skb(nSubframe_Length + 12);
-		skb_reserve(sub_skb, 12);
+		sub_skb = dev_alloc_skb(nSubframe_Length + 16);
+		skb_reserve(sub_skb, 16);
 		data_ptr = (u8 *)skb_put(sub_skb, nSubframe_Length);
 		memcpy(data_ptr, pdata, nSubframe_Length);
 		subframes[nr_subframes++] = sub_skb;

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux