ramips: add support for Xiaomi Mi Wi-Fi Router 3G v2
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 3c73a63..480726a 100755 (executable)
@@ -297,7 +297,8 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "4:lan" "6@eth0"
                ;;
                ucidef_add_switch "switch0" \
                        "4:lan" "6@eth0"
                ;;
-       cudy,wr1000)
+       cudy,wr1000|\
+       xiaomi,mir3g-v2)
                ucidef_add_switch "switch0" \
                        "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
                ;;
                ucidef_add_switch "switch0" \
                        "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
                ;;
@@ -720,6 +721,10 @@ ramips_setup_macs()
        xiaomi,mir3g)
                lan_mac=$(mtd_get_mac_binary factory 0xe006)
                ;;
        xiaomi,mir3g)
                lan_mac=$(mtd_get_mac_binary factory 0xe006)
                ;;
+       xiaomi,mir3g-v2)
+               wan_mac=$(mtd_get_mac_binary factory 0xe006)
+               label_mac=$wan_mac
+               ;;
        xiaomi,mir3p)
                lan_mac=$(mtd_get_mac_binary factory 0xe006)
                label_mac=$lan_mac
        xiaomi,mir3p)
                lan_mac=$(mtd_get_mac_binary factory 0xe006)
                label_mac=$lan_mac