ath79: add support for Archer C58/C59 v1
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index 54fbe7b35009ba69f20459aa7aa42fbc0047abe1..6aca7c789900ed273a52435274460df53d65a525 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+!/bin/sh
 
 . /lib/functions/system.sh
 . /lib/functions/uci-defaults.sh
@@ -14,12 +14,17 @@ ath79_setup_interfaces()
        ocedo,raccoon|\
        pcs,cap324|\
        pisen,wmm003n|\
+       pqi,air-pen|\
        tplink,re450-v2|\
        tplink,tl-mr10u|\
        tplink,tl-mr3020-v1|\
        tplink,tl-mr3040-v2|\
+       tplink,tl-wa901nd-v2|\
        tplink,tl-wr703n|\
        ubnt,bullet-m|\
+       ubnt,bullet-m-xw|\
+       ubnt,lap-120|\
+       ubnt,nanostation-ac-loco|\
        ubnt,rocket-m|\
        ubnt,unifiac-lite|\
        ubnt,unifiac-mesh|\
@@ -27,11 +32,14 @@ ath79_setup_interfaces()
        wd,mynet-wifi-rangeextender)
                ucidef_set_interface_lan "eth0"
                ;;
-       buffalo,wzr-hp-ag300h)
-               ucidef_set_interface_wan "eth1"
+       avm,fritz4020|\
+       tplink,archer-c58-v1|\
+       tplink,archer-c59-v1)
+               ucidef_set_interface_wan "eth0"
                ucidef_add_switch "switch0" \
-                       "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+                       "0@eth1" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
                ;;
+       buffalo,bhr-4grv|\
        buffalo,wzr-hp-g450h)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan" "3:lan" "4:lan" "5:lan" "1:wan"
@@ -40,6 +48,15 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "6@eth0"
                ;;
+       buffalo,wzr-hp-ag300h)
+               ucidef_set_interface_wan "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
+       buffalo,wzr-hp-g302h-a1a0)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan:1" "3:lan:4" "4:lan:3" "5:lan:2" "2:wan"
+               ;;
        dlink,dir-825-b1)
                ucidef_set_interface_wan "eth1"
                ucidef_add_switch "switch0" \
@@ -56,9 +73,9 @@ ath79_setup_interfaces()
        etactica,eg200)
                ucidef_set_interface_lan "eth0" "dhcp"
                ;;
-       avm,fritz4020|\
        glinet,ar150|\
-       glinet,ar300m)
+       glinet,ar300m|\
+       glinet,x750)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
        iodata,etg3-r|\
@@ -148,6 +165,11 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
                ;;
+       tplink,tl-wr842n-v2)
+               ucidef_set_interface_wan "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
+               ;;
        tplink,tl-wr941-v2)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;
@@ -159,6 +181,7 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "2:lan:3" "3:lan:2" "4:lan:1"
                ;;
+       ubnt,nanostation-ac|\
        ubnt,unifiac-mesh-pro|\
        ubnt,unifiac-pro)
                ucidef_add_switch "switch0" \