mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
ramips: fix switch setup for Xiaomi MiWiFi Nano
MiWiFi Nano has two LAN ports, which are in reverse order. Add port numbers to them, and disable unused ports. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
parent
9a8ba44f9c
commit
7a3c9e557a
@ -66,6 +66,11 @@
|
|||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&esw {
|
||||||
|
mediatek,portmap = <0x2f>;
|
||||||
|
mediatek,portdisable = <0x2a>;
|
||||||
|
};
|
||||||
|
|
||||||
&wmac {
|
&wmac {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -61,8 +61,7 @@ ramips_setup_interfaces()
|
|||||||
mercury,mac1200r-v2|\
|
mercury,mac1200r-v2|\
|
||||||
totolink,lr1200|\
|
totolink,lr1200|\
|
||||||
wavlink,wl-wn570ha1|\
|
wavlink,wl-wn570ha1|\
|
||||||
wavlink,wl-wn575a3|\
|
wavlink,wl-wn575a3)
|
||||||
xiaomi,miwifi-nano)
|
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
|
||||||
;;
|
;;
|
||||||
@ -109,6 +108,10 @@ ramips_setup_interfaces()
|
|||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"4:lan:1" "2:lan:2" "0:wan" "6@eth0"
|
"4:lan:1" "2:lan:2" "0:wan" "6@eth0"
|
||||||
;;
|
;;
|
||||||
|
xiaomi,miwifi-nano)
|
||||||
|
ucidef_add_switch "switch0" \
|
||||||
|
"0:lan:2" "2:lan:1" "4:wan" "6@eth0"
|
||||||
|
;;
|
||||||
zbtlink,zbt-we1226)
|
zbtlink,zbt-we1226)
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"0:lan:2" "1:lan:1" "4:wan" "6@eth0"
|
"0:lan:2" "1:lan:1" "4:wan" "6@eth0"
|
||||||
|
Loading…
Reference in New Issue
Block a user