]> git.ipfire.org Git - thirdparty/openwrt.git/blob
6a4a2aff6980d7dd9edd299f1984eaf4833fff4d
[thirdparty/openwrt.git] /
1 From 0e3e8284f8e1bf2fc0f7bf247194efe5cfc568c1 Mon Sep 17 00:00:00 2001
2 From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
3 Date: Wed, 30 Oct 2024 20:31:28 +0200
4 Subject: [PATCH] wifi: rtw88: Enable the new RTL8821AU/RTL8812AU drivers
5
6 These are older Wifi 5 chips. RTL8821AU is 1x1, with or without
7 Bluetooth. RTL8812AU is 2x2, without Bluetooth.
8
9 Beamforming is not implemented. It looks like these chips need a
10 different implementation than what is in bf.c.
11
12 Speed tests with RTL8821AU: 137 Mbps download, 144 Mbps upload.
13 Speed tests with RTL8812AU: 344 Mbps download, 387 Mbps upload.
14
15 Station mode and AP mode were tested.
16
17 Bluetooth coexistence works. I used my Bluetooth headphones for
18 several days, listening to music and watching videos. There is only
19 a problem with the wifi speeds with one router:
20
21 With ISP's HG6544C router:
22 Official driver: 3/5 Mbps.
23 rtw88: a bit more, but not steady at all. Not enough to watch a 1080p
24 Youtube video.
25
26 With my D-Link Eagle R32 router running Openwrt, on the same channel:
27 Official driver: 6/10 Mbps.
28 rtw88: download starts around 30, climbs to 50 / upload is 10 Mbps.
29 I can watch a 1080p Youtube video.
30
31 The music doesn't cut out during any speed tests.
32
33 I also tested transferring files to and from my phone. I don't have
34 other types of Bluetooth devices to test.
35
36 Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
37 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
38 Link: https://patch.msgid.link/0b8e8093-8103-4999-86bf-0055ec52ea64@gmail.com
39 ---
40 Kconfig.local | 15 ++++++++
41 drivers/net/wireless/realtek/rtw88/Kconfig | 40 ++++++++++++++++++++-
42 drivers/net/wireless/realtek/rtw88/Makefile | 15 ++++++++
43 3 files changed, 69 insertions(+), 1 deletion(-)
44
45 --- a/Kconfig.local
46 +++ b/Kconfig.local
47 @@ -1144,6 +1144,15 @@ config BACKPORTED_RTW88_8723D
48 config BACKPORTED_RTW88_8821C
49 tristate
50 default RTW88_8821C
51 +config BACKPORTED_RTW88_88XXA
52 + tristate
53 + default RTW88_88XXA
54 +config BACKPORTED_RTW88_8821A
55 + tristate
56 + default RTW88_8821A
57 +config BACKPORTED_RTW88_8812A
58 + tristate
59 + default RTW88_8812A
60 config BACKPORTED_RTW88_8822BE
61 tristate
62 default RTW88_8822BE
63 @@ -1183,6 +1192,12 @@ config BACKPORTED_RTW88_8821CS
64 config BACKPORTED_RTW88_8821CU
65 tristate
66 default RTW88_8821CU
67 +config BACKPORTED_RTW88_8821AU
68 + tristate
69 + default RTW88_8821AU
70 +config BACKPORTED_RTW88_8812AU
71 + tristate
72 + default RTW88_8812AU
73 config BACKPORTED_RTW88_DEBUG
74 tristate
75 default RTW88_DEBUG
76 --- a/drivers/net/wireless/realtek/rtw88/Kconfig
77 +++ b/drivers/net/wireless/realtek/rtw88/Kconfig
78 @@ -54,6 +54,20 @@ config RTW88_8821C
79 tristate
80 depends on m
81
82 +config RTW88_88XXA
83 + tristate
84 + depends on m
85 +
86 +config RTW88_8821A
87 + tristate
88 + depends on m
89 + select RTW88_88XXA
90 +
91 +config RTW88_8812A
92 + tristate
93 + depends on m
94 + select RTW88_88XXA
95 +
96 config RTW88_8822BE
97 tristate "Realtek 8822BE PCI wireless network adapter"
98 depends on m
99 @@ -213,6 +227,30 @@ config RTW88_8821CU
100
101 802.11ac USB wireless network adapter
102
103 +config RTW88_8821AU
104 + tristate "Realtek 8821AU/8811AU USB wireless network adapter"
105 + depends on m
106 + depends on USB
107 + select RTW88_CORE
108 + select RTW88_USB
109 + select RTW88_8821A
110 + help
111 + Select this option will enable support for 8821AU and 8811AU chipset
112 +
113 + 802.11ac USB wireless network adapter
114 +
115 +config RTW88_8812AU
116 + tristate "Realtek 8812AU USB wireless network adapter"
117 + depends on m
118 + depends on USB
119 + select RTW88_CORE
120 + select RTW88_USB
121 + select RTW88_8812A
122 + help
123 + Select this option will enable support for 8812AU chipset
124 +
125 + 802.11ac USB wireless network adapter
126 +
127 config RTW88_DEBUG
128 bool "Realtek rtw88 debug support"
129 depends on RTW88_CORE
130 --- a/drivers/net/wireless/realtek/rtw88/Makefile
131 +++ b/drivers/net/wireless/realtek/rtw88/Makefile
132 @@ -77,6 +77,21 @@ rtw88_8821cs-objs := rtw8821cs.o
133 obj-$(CPTCFG_RTW88_8821CU) += rtw88_8821cu.o
134 rtw88_8821cu-objs := rtw8821cu.o
135
136 +obj-$(CPTCFG_RTW88_88XXA) += rtw88_88xxa.o
137 +rtw88_88xxa-objs := rtw88xxa.o
138 +
139 +obj-$(CPTCFG_RTW88_8821A) += rtw88_8821a.o
140 +rtw88_8821a-objs := rtw8821a.o rtw8821a_table.o
141 +
142 +obj-$(CPTCFG_RTW88_8812A) += rtw88_8812a.o
143 +rtw88_8812a-objs := rtw8812a.o rtw8812a_table.o
144 +
145 +obj-$(CPTCFG_RTW88_8821AU) += rtw88_8821au.o
146 +rtw88_8821au-objs := rtw8821au.o
147 +
148 +obj-$(CPTCFG_RTW88_8812AU) += rtw88_8812au.o
149 +rtw88_8812au-objs := rtw8812au.o
150 +
151 obj-$(CPTCFG_RTW88_PCI) += rtw88_pci.o
152 rtw88_pci-objs := pci.o
153