]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtlwifi: Enable the new rtl8192du driver
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Thu, 23 May 2024 14:49:00 +0000 (17:49 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 30 May 2024 02:32:47 +0000 (10:32 +0800)
The RTL8192DU is an older Wifi 4 dual band chip. It comes in two
flavours: single MAC single PHY (like most Realtek Wifi 4 USB devices),
and dual MAC dual PHY.

The single MAC single PHY version is 2T2R and can work either in the
2.4 GHz band or the 5 GHz band.

The dual MAC dual PHY version has two USB interfaces and appears to the
system as two separate 1T1R Wifi devices, one working in the 2.4 GHz
band, the other in the 5 GHz band.

This was tested only with a single MAC single PHY device, mostly in
station mode. The speeds in the 2.4 GHz band with 20 MHz channel width
are similar to the out-of-tree driver: 85/51 megabits/second.

Stefan Lippers-Hollmann tested the speed in the 5 GHz band with 40 MHz
channel width: 173/99 megabits/second.

It was also tested briefly in AP mode. It's emitting beacons and my
phone can connect to it.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/5f2da7ee-876a-42fc-8fec-ec5386fa8c26@gmail.com
drivers/net/wireless/realtek/rtlwifi/Kconfig
drivers/net/wireless/realtek/rtlwifi/Makefile
drivers/net/wireless/realtek/rtlwifi/rtl8192du/Makefile [new file with mode: 0644]

index cfe63f7b28d9af56ee2884c5794fd9bf49d73f56..1e66c1bf7c8bb80a10c2eb2955d0db4c207157ea 100644 (file)
@@ -119,6 +119,18 @@ config RTL8192CU
 
        If you choose to build it as a module, it will be called rtl8192cu
 
+config RTL8192DU
+       tristate "Realtek RTL8192DU USB Wireless Network Adapter"
+       depends on USB
+       select RTLWIFI
+       select RTLWIFI_USB
+       select RTL8192D_COMMON
+       help
+       This is the driver for Realtek RTL8192DU 802.11n USB
+       wireless network adapters.
+
+       If you choose to build it as a module, it will be called rtl8192du
+
 config RTLWIFI
        tristate
        select FW_LOADER
index 423981b148df212afcefebf0b4a90405a931d262..9cf32277c7f1b3c2c68c5c4036a4259d1b607434 100644 (file)
@@ -25,6 +25,7 @@ obj-$(CONFIG_RTL8192CU)               += rtl8192cu/
 obj-$(CONFIG_RTL8192SE)                += rtl8192se/
 obj-$(CONFIG_RTL8192D_COMMON)  += rtl8192d/
 obj-$(CONFIG_RTL8192DE)                += rtl8192de/
+obj-$(CONFIG_RTL8192DU)                += rtl8192du/
 obj-$(CONFIG_RTL8723AE)                += rtl8723ae/
 obj-$(CONFIG_RTL8723BE)                += rtl8723be/
 obj-$(CONFIG_RTL8188EE)                += rtl8188ee/
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192du/Makefile b/drivers/net/wireless/realtek/rtlwifi/rtl8192du/Makefile
new file mode 100644 (file)
index 0000000..569bfd3
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
+rtl8192du-objs :=              \
+               dm.o            \
+               fw.o            \
+               hw.o            \
+               led.o           \
+               phy.o           \
+               rf.o            \
+               sw.o            \
+               table.o         \
+               trx.o
+
+obj-$(CONFIG_RTL8192DU) += rtl8192du.o