rtl8xxxu: add support for rtl8188eu
[openwrt/staging/rmilecki.git] / package / kernel / mac80211 / patches / 650-0009-rtl8xxxu-Correct-rxdesc16-definition.patch
1 From 5af9037975b20c64faa6e4829971b9a039342352 Mon Sep 17 00:00:00 2001
2 From: Jes Sorensen <Jes.Sorensen@redhat.com>
3 Date: Thu, 19 May 2016 20:29:01 -0400
4 Subject: [PATCH] rtl8xxxu: Correct rxdesc16 definition
5
6 This corrects the definition of rxdesc16 to correctly specify pkt_cnt
7 for aggregated packets. This is based on the code of the vendor
8 rtl8723au driver, as opposed to the struct definitions they use.
9
10 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
11 ---
12 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 6 ++++--
13 1 file changed, 4 insertions(+), 2 deletions(-)
14
15 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
16 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
17 @@ -135,7 +135,8 @@ struct rtl8xxxu_rxdesc16 {
18
19 u32 seq:12;
20 u32 frag:4;
21 - u32 nextpktlen:14;
22 + u32 pkt_cnt:8;
23 + u32 reserved:6;
24 u32 nextind:1;
25 u32 reserved0:1;
26
27 @@ -198,7 +199,8 @@ struct rtl8xxxu_rxdesc16 {
28
29 u32 reserved0:1;
30 u32 nextind:1;
31 - u32 nextpktlen:14;
32 + u32 reserved:6;
33 + u32 pkt_cnt:8;
34 u32 frag:4;
35 u32 seq:12;
36