ar71xx: fix tl-wr841n-v7 switch port mapping
authorQian Zheng <sotux82@gmail.com>
Thu, 12 Jan 2017 01:26:20 +0000 (09:26 +0800)
committerJo-Philipp Wich <jo@mein.io>
Wed, 1 Feb 2017 16:58:39 +0000 (17:58 +0100)
Signed-off-by: Qian Zheng <sotux82@gmail.com>
[Jo-Philipp Wich: fix alphabetical order]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
target/linux/ar71xx/base-files/etc/board.d/02_network

index c916462fc6107d734ad3650f4eb3b3e10c191eba..fe3d95829f2a20f88d5df80ca1419a82244bcc41 100755 (executable)
@@ -45,7 +45,6 @@ ar71xx_setup_interfaces()
        tl-wr741nd|\
        tl-wr741nd-v4|\
        tl-wr841n-v11|\
-       tl-wr841n-v7|\
        tl-wr841n-v9|\
        tl-wr842n-v3|\
        whr-g301n|\
@@ -397,6 +396,11 @@ ar71xx_setup_interfaces()
                ucidef_set_interface_raw "eth" "eth0"
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;
+       tl-wr841n-v7)
+               ucidef_set_interfaces_lan_wan "eth0" "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
+               ;;
        tl-wr842n-v2)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ucidef_add_switch "switch0" \