[openwrt/openwrt] ramips: fix Xiaomi MiWiFi Mini switch definition

LEDE Commits lede-commits at lists.infradead.org
Thu Aug 13 07:57:19 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/5af8da37870dc05dbe2e57e04be714b80f4aa21d

commit 5af8da37870dc05dbe2e57e04be714b80f4aa21d
Author: Chih-Wei Chen <changeway at gmail.com>
AuthorDate: Wed Oct 16 14:34:14 2019 +0800

    ramips: fix Xiaomi MiWiFi Mini switch definition
    
    Based on OpenWRT Table of Hardware > Xiaomi > Xiaomi Mi WiFi Mini
    
    Switch Ports Defaults:
    0, 1: LAN
    4: WAN
    6: CPU
    
    Port in Web GUI (word printed on bottom of case)
    WAN(Internet) map to switch port 4
    LAN1(.) map to switch port 1
    LAN2(..) map to switch port 0
    CPU map to switch port 6
    
    current setting is 1 WAN/ 4 LAN port, fix it.
    
    Signed-off-by: Chih-Wei Chen <changeway at gmail.com>
    [rebased after base-files split, fixed commit title]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
    (backported from commit 3e88ab79b03917bc4b03b34db12edf622bde1de1)
---
 target/linux/ramips/base-files/etc/board.d/02_network | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index f743ce851a..8ca1831afe 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -99,7 +99,6 @@ ramips_setup_interfaces()
 	kn|\
 	kn_rc|\
 	mac1200rv2|\
-	miwifi-mini|\
 	miwifi-nano|\
 	mt7621|\
 	mt7628|\
@@ -360,6 +359,12 @@ ramips_setup_interfaces()
 		ucidef_add_switch "switch1" \
 			"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "7t at eth0"
 		;;
+	miwifi-mini|\
+	y1|\
+	zbtlink,zbt-we1226)
+		ucidef_add_switch "switch0" \
+			"0:lan:2" "1:lan:1" "4:wan" "6 at eth0"
+		;;
 	mlwg2|\
 	wizard8800|\
 	wl-330n)
@@ -471,11 +476,6 @@ ramips_setup_interfaces()
 		ucidef_add_switch "switch0" \
 			"4:lan:1" "2:lan:2" "0:wan" "6 at eth0"
 		;;
-	zbtlink,zbt-we1226|\
-	y1)
-		ucidef_add_switch "switch0" \
-			"0:lan:2" "1:lan:1" "4:wan" "6 at eth0"
-		;;
 	zyxel,keenetic-start)
 		ucidef_add_switch "switch0" \
 			"0:lan:3" "1:lan:2" "2:lan:1" "3:lan:0" "4:wan" "6 at eth0"



More information about the lede-commits mailing list