ipq40xx: add support for Qxwlan E2600AC C1 and C2
[openwrt/staging/wigyori.git] / target / linux / ipq40xx / base-files / etc / board.d / 02_network
index dffccd9fad21590b4d99449906c0c250fba0d804..c0466ba8bc2fff28b3967cb53d1b323d29a500ec 100755 (executable)
@@ -12,7 +12,8 @@ ipq40xx_setup_interfaces()
        local board="$1"
 
        case "$board" in
-       8dev,jalapeno)
+       8dev,jalapeno|\
+       alfa-network,ap120c-ac)
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
                ;;
        asus,map-ac2200|\
@@ -47,6 +48,12 @@ ipq40xx_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0u@eth0" "3:lan" "4:lan"
                ;;
+       qxwlan,e2600ac-c1 |\
+       qxwlan,e2600ac-c2)
+               ucidef_set_interfaces_lan_wan "eth0" "eth1"
+               ucidef_add_switch "switch0" \
+                       "0u@eth0" "3:lan" "4:lan" "0u@eth1" "5:wan"
+               ;;
        *)
                echo "Unsupported hardware. Network interfaces not initialized"
                ;;
@@ -65,7 +72,7 @@ ipq40xx_setup_macs()
                ;;
        linksys,ea6350v3)
                wan_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
-               lan_mac=$(macaddr_add $(wan_mac) +1)
+               lan_mac=$(macaddr_add "$wan_mac" 1)
                ;;
        esac