rtl8xxxu: Correct rxdesc16 definition
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 27 Jun 2016 16:32:02 +0000 (12:32 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 8 Jul 2016 13:41:55 +0000 (16:41 +0300)
This corrects the definition of rxdesc16 to correctly specify pkt_cnt
for aggregated packets. This is based on the code of the vendor
rtl8723au driver, as opposed to the struct definitions they use.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h

index d0ccda8d0e739aac8ed9421382cee9b984993611..e8158c053d779babcaa9b8599c33bd7c6c4ca0ae 100644 (file)
@@ -135,7 +135,8 @@ struct rtl8xxxu_rxdesc16 {
 
        u32 seq:12;
        u32 frag:4;
-       u32 nextpktlen:14;
+       u32 pkt_cnt:8;
+       u32 reserved:6;
        u32 nextind:1;
        u32 reserved0:1;
 
@@ -198,7 +199,8 @@ struct rtl8xxxu_rxdesc16 {
 
        u32 reserved0:1;
        u32 nextind:1;
-       u32 nextpktlen:14;
+       u32 reserved:6;
+       u32 pkt_cnt:8;
        u32 frag:4;
        u32 seq:12;