8446ad3a9688a546a49cb552f6a096a70dd20d71
[openwrt/staging/blocktrron.git] /
1 From deb3ddeb18652118956fb581a39ac299e1ee5623 Mon Sep 17 00:00:00 2001
2 From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
3 Date: Fri, 7 Mar 2025 02:26:25 +0200
4 Subject: [PATCH] wifi: rtw88: Enable the new RTL8814AE/RTL8814AU drivers
5
6 RTL8814A is a wifi 5 chip with 4 RF paths (chains), 3 spatial streams,
7 and probably no Bluetooth.
8
9 The USB-based RTL8814AU can reach 800 Mbps in the 5 GHz band in USB 3
10 mode. In USB 2 mode it only uses 2 spatial streams.
11
12 The PCI-based RTL8814AE is not as popular and didn't get as much
13 testing so it's unclear how fast it goes. It's more like a bonus on top
14 of the RTL8814AU support.
15
16 Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
17 Acked-by: Ping-Ke Shih <pkshih@realtek.com>
18 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
19 Link: https://patch.msgid.link/5795b0a7-511e-40b5-ac36-476b63f174c7@gmail.com
20 ---
21 drivers/net/wireless/realtek/rtw88/Kconfig | 25 +++++++++++++++++++++
22 drivers/net/wireless/realtek/rtw88/Makefile | 9 ++++++++
23 2 files changed, 34 insertions(+)
24
25 --- a/Kconfig.local
26 +++ b/Kconfig.local
27 @@ -1153,6 +1153,9 @@ config BACKPORTED_RTW88_8821A
28 config BACKPORTED_RTW88_8812A
29 tristate
30 default RTW88_8812A
31 +config BACKPORTED_RTW88_8814A
32 + tristate
33 + default RTW88_8814A
34 config BACKPORTED_RTW88_8822BE
35 tristate
36 default RTW88_8822BE
37 @@ -1198,12 +1201,21 @@ config BACKPORTED_RTW88_8821AU
38 config BACKPORTED_RTW88_8812AU
39 tristate
40 default RTW88_8812AU
41 +config BACKPORTED_RTW88_8814AE
42 + tristate
43 + default RTW88_8814AE
44 +config BACKPORTED_RTW88_8814AU
45 + tristate
46 + default RTW88_8814AU
47 config BACKPORTED_RTW88_DEBUG
48 tristate
49 default RTW88_DEBUG
50 config BACKPORTED_RTW88_DEBUGFS
51 tristate
52 default RTW88_DEBUGFS
53 +config BACKPORTED_RTW88_LEDS
54 + tristate
55 + default RTW88_LEDS
56 config BACKPORTED_RTW89
57 tristate
58 default RTW89
59 --- a/drivers/net/wireless/realtek/rtw88/Kconfig
60 +++ b/drivers/net/wireless/realtek/rtw88/Kconfig
61 @@ -68,6 +68,10 @@ config RTW88_8812A
62 depends on m
63 select RTW88_88XXA
64
65 +config RTW88_8814A
66 + tristate
67 + depends on m
68 +
69 config RTW88_8822BE
70 tristate "Realtek 8822BE PCI wireless network adapter"
71 depends on m
72 @@ -251,6 +255,30 @@ config RTW88_8812AU
73
74 802.11ac USB wireless network adapter
75
76 +config RTW88_8814AE
77 + tristate "Realtek 8814AE PCI wireless network adapter"
78 + depends on m
79 + depends on PCI
80 + select RTW88_CORE
81 + select RTW88_PCI
82 + select RTW88_8814A
83 + help
84 + Select this option will enable support for 8814AE chipset
85 +
86 + 802.11ac PCIe wireless network adapter
87 +
88 +config RTW88_8814AU
89 + tristate "Realtek 8814AU USB wireless network adapter"
90 + depends on m
91 + depends on USB
92 + select RTW88_CORE
93 + select RTW88_USB
94 + select RTW88_8814A
95 + help
96 + Select this option will enable support for 8814AU chipset
97 +
98 + 802.11ac USB wireless network adapter
99 +
100 config RTW88_DEBUG
101 bool "Realtek rtw88 debug support"
102 depends on RTW88_CORE
103 --- a/drivers/net/wireless/realtek/rtw88/Makefile
104 +++ b/drivers/net/wireless/realtek/rtw88/Makefile
105 @@ -94,6 +94,15 @@ rtw88_8821au-objs := rtw8821au.o
106 obj-$(CPTCFG_RTW88_8812AU) += rtw88_8812au.o
107 rtw88_8812au-objs := rtw8812au.o
108
109 +obj-$(CPTCFG_RTW88_8814A) += rtw88_8814a.o
110 +rtw88_8814a-objs := rtw8814a.o rtw8814a_table.o
111 +
112 +obj-$(CPTCFG_RTW88_8814AE) += rtw88_8814ae.o
113 +rtw88_8814ae-objs := rtw8814ae.o
114 +
115 +obj-$(CPTCFG_RTW88_8814AU) += rtw88_8814au.o
116 +rtw88_8814au-objs := rtw8814au.o
117 +
118 obj-$(CPTCFG_RTW88_PCI) += rtw88_pci.o
119 rtw88_pci-objs := pci.o
120
121 --- a/local-symbols
122 +++ b/local-symbols
123 @@ -377,6 +377,10 @@ RTW88_8723X=
124 RTW88_8703B=
125 RTW88_8723D=
126 RTW88_8821C=
127 +RTW88_88XXA=
128 +RTW88_8821A=
129 +RTW88_8812A=
130 +RTW88_8814A=
131 RTW88_8822BE=
132 RTW88_8822BS=
133 RTW88_8822BU=
134 @@ -390,8 +394,13 @@ RTW88_8723DU=
135 RTW88_8821CE=
136 RTW88_8821CS=
137 RTW88_8821CU=
138 +RTW88_8821AU=
139 +RTW88_8812AU=
140 +RTW88_8814AE=
141 +RTW88_8814AU=
142 RTW88_DEBUG=
143 RTW88_DEBUGFS=
144 +RTW88_LEDS=
145 RTW89=
146 RTW89_CORE=
147 RTW89_PCI=