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
6 RTL8814A is a wifi 5 chip with 4 RF paths (chains), 3 spatial streams,
7 and probably no Bluetooth.
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.
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.
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
21 drivers/net/wireless/realtek/rtw88/Kconfig | 25 +++++++++++++++++++++
22 drivers/net/wireless/realtek/rtw88/Makefile | 9 ++++++++
23 2 files changed, 34 insertions(+)
27 @@ -1153,6 +1153,9 @@ config BACKPORTED_RTW88_8821A
28 config BACKPORTED_RTW88_8812A
31 +config BACKPORTED_RTW88_8814A
34 config BACKPORTED_RTW88_8822BE
37 @@ -1198,12 +1201,21 @@ config BACKPORTED_RTW88_8821AU
38 config BACKPORTED_RTW88_8812AU
41 +config BACKPORTED_RTW88_8814AE
43 + default RTW88_8814AE
44 +config BACKPORTED_RTW88_8814AU
46 + default RTW88_8814AU
47 config BACKPORTED_RTW88_DEBUG
50 config BACKPORTED_RTW88_DEBUGFS
53 +config BACKPORTED_RTW88_LEDS
56 config BACKPORTED_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
70 tristate "Realtek 8822BE PCI wireless network adapter"
72 @@ -251,6 +255,30 @@ config RTW88_8812AU
74 802.11ac USB wireless network adapter
77 + tristate "Realtek 8814AE PCI wireless network adapter"
84 + Select this option will enable support for 8814AE chipset
86 + 802.11ac PCIe wireless network adapter
89 + tristate "Realtek 8814AU USB wireless network adapter"
96 + Select this option will enable support for 8814AU chipset
98 + 802.11ac USB wireless network adapter
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
109 +obj-$(CPTCFG_RTW88_8814A) += rtw88_8814a.o
110 +rtw88_8814a-objs := rtw8814a.o rtw8814a_table.o
112 +obj-$(CPTCFG_RTW88_8814AE) += rtw88_8814ae.o
113 +rtw88_8814ae-objs := rtw8814ae.o
115 +obj-$(CPTCFG_RTW88_8814AU) += rtw88_8814au.o
116 +rtw88_8814au-objs := rtw8814au.o
118 obj-$(CPTCFG_RTW88_PCI) += rtw88_pci.o
119 rtw88_pci-objs := pci.o
123 @@ -377,6 +377,10 @@ RTW88_8723X=
134 @@ -390,8 +394,13 @@ RTW88_8723DU=