[openwrt/openwrt] d1: Use correct module for devices with wifi

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 20 14:04:07 PST 2025


wigyori pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/6c628bfddcfe2f0e2cf5c367cfbaba1a434116bf

commit 6c628bfddcfe2f0e2cf5c367cfbaba1a434116bf
Author: Raylynn Knight <rayknight at me.com>
AuthorDate: Sat Jan 11 00:19:59 2025 -0500

    d1: Use correct module for devices with wifi
    
    Devices with wifi (LicheePi RV and MangoPi MQ Pro) were using the
    wrong module.  Also wpad was missing to enable using the WiFi.
    
    Signed-off-by: Raylynn Knight <rayknight at me.com>
    Link: https://github.com/openwrt/openwrt/pull/17576
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    Signed-off-by: Zoltan HERPAI <wigyori at uid0.hu>
    (cherry picked from commit 8a17bae722a62954269f29dc48025e88c919dc24)
---
 target/linux/d1/base-files/etc/board.d/02_network | 4 ++++
 target/linux/d1/image/Makefile                    | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/target/linux/d1/base-files/etc/board.d/02_network b/target/linux/d1/base-files/etc/board.d/02_network
index df48b431af..dc61e4bde5 100644
--- a/target/linux/d1/base-files/etc/board.d/02_network
+++ b/target/linux/d1/base-files/etc/board.d/02_network
@@ -8,6 +8,10 @@
 board_config_update
 
 case "$(board_name)" in
+sipeed,lichee-rv-dock |\
+widora,mangopi-mq-pro)
+	ucidef_set_interface_lan "wlan0"
+	;;
 *)
 	ucidef_set_interface_lan 'eth0'
 	;;
diff --git a/target/linux/d1/image/Makefile b/target/linux/d1/image/Makefile
index 8dca2fb1cb..ea41e65c76 100644
--- a/target/linux/d1/image/Makefile
+++ b/target/linux/d1/image/Makefile
@@ -65,7 +65,7 @@ define Device/sipeed_lichee-rv-dock
   DEVICE_MODEL := LicheePi RV (dock)
   DEVICE_DTS := allwinner/sun20i-d1-lichee-rv-dock
   SUPPORTED_DEVICES += lichee_rv_dock
-  DEVICE_PACKAGES += kmod-rtl8723bs
+  DEVICE_PACKAGES += kmod-rtw88-8723ds wpad-basic-mbedtls
   UBOOT := lichee_rv_dock
 endef
 TARGET_DEVICES += sipeed_lichee-rv-dock
@@ -76,7 +76,7 @@ define Device/widora_mangopi-mq-pro
   DEVICE_MODEL := MQ Pro
   DEVICE_DTS := allwinner/sun20i-d1-mangopi-mq-pro
   SUPPORTED_DEVICES += mangopi_mq_pro
-  DEVICE_PACKAGES += kmod-rtl8723bs
+  DEVICE_PACKAGES += kmod-rtw88-8723ds wpad-basic-mbedtls
   UBOOT := mangopi_mq_pro
 endef
 TARGET_DEVICES += widora_mangopi-mq-pro




More information about the lede-commits mailing list