ramips: improve Xiaomi Mi Router 3G support
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 862e99b0bbd221ae28bbf3dcbfd396f8ab80614e..a1a82d62ed7bc964ff3a657e586a622556ab8924 100755 (executable)
@@ -124,7 +124,7 @@ ramips_setup_interfaces()
                ;;
        mir3g)
                ucidef_add_switch "switch0" \
-                       "1:wan" "2:lan:2" "3:lan:1" "6@eth0"
+                       "2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
                ;;
        psg1218b)
                ucidef_add_switch "switch0" \
@@ -429,7 +429,7 @@ ramips_setup_macs()
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
        mir3g)
-               lan_mac=$(mtd_get_mac_binary Factory e006)
+               lan_mac=$(mtd_get_mac_binary Factory 0xe006)
                ;;
        miwifi-mini)
                wan_mac=$(cat /sys/class/net/eth0/address)