[openwrt/openwrt] mac80211: realtek: rtlwifi: add RTL8192DU support

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 19 08:37:46 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7f73db690217bdf077001c99cc316db9be5fc8ce

commit 7f73db690217bdf077001c99cc316db9be5fc8ce
Author: Stefan Lippers-Hollmann <s.l-h at gmx.de>
AuthorDate: Thu Oct 17 17:37:02 2024 +0200

    mac80211: realtek: rtlwifi: add RTL8192DU support
    
    Add Realtek RTL8192DU support to the rtlwifi package.
    The RTL8192DU chipset is a 802.11a/b/g/n chip which supports 2.4 and 5 GHz at
    up to 40 MHz channel bandwidth, three hardware variations exist:
    
    * single MAC/ single PHY
    * single MAC/ double PHY
    * double MAC/ double PHY
    
    This driver has been successully tested on a single MAC/ single PHY variant
    0bda:8194 (DeLock 88540, https://www.delock.com/produkt/88540/merkmale.html)
    
    rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
    rtl8192du: Driver for Realtek RTL8192DU WLAN interface
    rtl8192du: Loading firmware file rtlwifi/rtl8192dufw.bin
    ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
    usbcore: registered new interface driver rtl8192du
    
    Supported interface modes:
    * IBSS
    * managed
    * AP
    * AP/VLAN
    * monitor
    * mesh point
    * P2P-client
    * P2P-GO
    
    interface combinations are not supported
    
    The new rtlwifi based driver rtl8192du has been merged in kernel v6.11.
    
    Signed-off-by: Stefan Lippers-Hollmann <s.l-h at gmx.de>
    Link: https://github.com/openwrt/openwrt/pull/16721
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/mac80211/realtek.mk | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/package/kernel/mac80211/realtek.mk b/package/kernel/mac80211/realtek.mk
index 2eaed210e1..4a6f10cddc 100644
--- a/package/kernel/mac80211/realtek.mk
+++ b/package/kernel/mac80211/realtek.mk
@@ -1,10 +1,10 @@
 PKG_DRIVERS += \
 	rtlwifi rtlwifi-pci rtlwifi-btcoexist rtlwifi-usb rtl8192c-common rtl8192d-common \
-	rtl8192ce rtl8192se rtl8192de rtl8192cu rtl8723-common rtl8723be rtl8723bs rtl8821ae \
-	rtl8xxxu rtw88 rtw88-pci rtw88-usb rtw88-sdio rtw88-8821c rtw88-8822b rtw88-8822c \
-	rtw88-8723x rtw88-8723d rtw88-8821ce rtw88-8821cu rtw88-8822be rtw88-8822bu \
-	rtw88-8822ce rtw88-8822cu rtw88-8723de rtw88-8723ds rtw88-8723du \
-	rtw89 rtw89-pci rtw89-8851be rtw89-8852ae rtw89-8852b-common \
+	rtl8192ce rtl8192se rtl8192de rtl8192cu rtl8192du rtl8723-common rtl8723be \
+	rtl8723bs rtl8821ae rtl8xxxu rtw88 rtw88-pci rtw88-usb rtw88-sdio rtw88-8821c \
+	rtw88-8822b rtw88-8822c rtw88-8723x rtw88-8723d rtw88-8821ce rtw88-8821cu \
+	rtw88-8822be rtw88-8822bu rtw88-8822ce rtw88-8822cu rtw88-8723de rtw88-8723ds \
+	rtw88-8723du rtw89 rtw89-pci rtw89-8851be rtw89-8852ae rtw89-8852b-common \
 	rtw89-8852be rtw89-8852ce rtw89-8922ae
 
 config-$(call config_package,rtlwifi) += RTL_CARDS RTLWIFI
@@ -16,6 +16,7 @@ config-$(call config_package,rtl8192ce) += RTL8192CE
 config-$(call config_package,rtl8192se) += RTL8192SE
 config-$(call config_package,rtl8192d-common) += RTL8192D_COMMON
 config-$(call config_package,rtl8192de) += RTL8192DE
+config-$(call config_package,rtl8192du) += RTL8192DU
 config-$(call config_package,rtl8192cu) += RTL8192CU
 config-$(call config_package,rtl8821ae) += RTL8821AE
 config-$(CONFIG_PACKAGE_RTLWIFI_DEBUG) += RTLWIFI_DEBUG
@@ -146,6 +147,14 @@ define KernelPackage/rtl8192de
   AUTOLOAD:=$(call AutoProbe,rtl8192de)
 endef
 
+define KernelPackage/rtl8192du
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=Realtek RTL8192DU support
+  DEPENDS+= +kmod-rtlwifi-usb +kmod-rtl8192d-common +rtl8192du-firmware
+  FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8192du/rtl8192du.ko
+  AUTOLOAD:=$(call AutoProbe,rtl8192du)
+endef
+
 define KernelPackage/rtl8192cu
   $(call KernelPackage/mac80211/Default)
   TITLE:=Realtek RTL8192CU/RTL8188CU support




More information about the lede-commits mailing list