ipq806x: add support for Extreme Networks AP3935
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / board.d / 02_network
index d64805b8f5e4319f694d526116f888b4a78a19d0..a4316272e9e53265f59bb0fe24a29533ed570db7 100644 (file)
@@ -39,7 +39,8 @@ ipq806x_setup_interfaces()
        tplink,onhub)
                ucidef_set_interfaces_lan_wan "lan1" "wan"
                ;;
-       edgecore,ecw5410)
+       edgecore,ecw5410 |\
+       extreme,ap3935)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
        qcom,ipq8064-ap161)
@@ -83,6 +84,12 @@ ipq806x_setup_macs()
                        ucidef_set_interface_macaddr "lan" "$(macaddr_add $hw_mac_addr 2)"
                        ucidef_set_interface_macaddr "wan" "$(macaddr_add $hw_mac_addr 3)"
                ;;
+               asrock,g10)
+                       hw_mac_addr=$(mtd_get_mac_ascii hwconfig HW.LAN.MAC.Address)
+                       ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
+                       hw_mac_addr=$(mtd_get_mac_ascii hwconfig HW.WAN.MAC.Address)
+                       ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
+               ;;
        esac
 }