mac80211: brcmfmac: backport wowlan netdetect fixes
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 653-0023-rtl8xxxu-Use-rxdesc16-and-32-byte-tx-descriptors-for.patch
1 From 444b8212457b611f482ee6a5f52e8a14e6881f6e Mon Sep 17 00:00:00 2001
2 From: Jes Sorensen <Jes.Sorensen@redhat.com>
3 Date: Thu, 21 Jul 2016 14:52:49 -0400
4 Subject: [PATCH] rtl8xxxu: Use rxdesc16 and 32 byte tx descriptors for 8188eu
5
6 The RX descriptor format looks like the gen1 RX descriptor format, so
7 use that for now.
8
9 The TX descriptor format is different and looks to be some bizarre
10 hybrid of the gen1 and gen2 formats.
11
12 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
13 ---
14 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 3 +++
15 1 file changed, 3 insertions(+)
16
17 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
18 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
19 @@ -520,8 +520,11 @@ struct rtl8xxxu_fileops rtl8188eu_fops =
20 .llt_init = rtl8xxxu_auto_llt_table,
21 .init_phy_bb = rtl8188eu_init_phy_bb,
22 .init_phy_rf = rtl8188eu_init_phy_rf,
23 + .parse_rx_desc = rtl8xxxu_parse_rxdesc16,
24 .usb_quirks = rtl8188e_usb_quirks,
25 .writeN_block_size = 128,
26 + .rx_desc_size = sizeof(struct rtl8xxxu_rxdesc16),
27 + .tx_desc_size = sizeof(struct rtl8xxxu_txdesc32),
28 .has_tx_report = 1,
29 /*
30 * Use 9K for 8188e normal chip