ea953290a7827190c6f0598b04bc405e29010157
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 652-0004-rtl8xxxu-Correct-rxdesc16-definition.patch
1 From 41892729cf60a600fb14ed924f0d18440e2dfac9 Mon Sep 17 00:00:00 2001
2 From: Jes Sorensen <Jes.Sorensen@redhat.com>
3 Date: Mon, 27 Jun 2016 12:32:02 -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 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
12 ---
13 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 6 ++++--
14 1 file changed, 4 insertions(+), 2 deletions(-)
15
16 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
17 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
18 @@ -135,7 +135,8 @@ struct rtl8xxxu_rxdesc16 {
19
20 u32 seq:12;
21 u32 frag:4;
22 - u32 nextpktlen:14;
23 + u32 pkt_cnt:8;
24 + u32 reserved:6;
25 u32 nextind:1;
26 u32 reserved0:1;
27
28 @@ -198,7 +199,8 @@ struct rtl8xxxu_rxdesc16 {
29
30 u32 reserved0:1;
31 u32 nextind:1;
32 - u32 nextpktlen:14;
33 + u32 reserved:6;
34 + u32 pkt_cnt:8;
35 u32 frag:4;
36 u32 seq:12;
37