aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorOldřich Jedlička <oldium.pro@gmail.com>2017-04-23 09:29:15 +0200
committerPiotr Dymacz <pepe2k@gmail.com>2017-05-15 22:43:33 +0200
commitf4a97c7f5db7d2ea3c499677305fad2b6b872bd7 (patch)
treeba6616b1fbe134b445ac75d1001dc502b4e07661 /target/linux/ar71xx/base-files/etc
parent6d7cb5337ec45f230dbba352896cf8a45641f9f3 (diff)
downloadupstream-f4a97c7f5db7d2ea3c499677305fad2b6b872bd7.tar.gz
upstream-f4a97c7f5db7d2ea3c499677305fad2b6b872bd7.tar.bz2
upstream-f4a97c7f5db7d2ea3c499677305fad2b6b872bd7.zip
ar71xx: fix switch port mapping for ap123 based TP-Link devices
This fixes switch port mapping for: TL-WR841N/ND v8, TL-MR3420 v2 and TL-WR941N/ND v5. All of them share the same Atheros ap123 reference design. The order of switch ports (shown in "swconfig dev eth1 show") is CPU, LAN 4, LAN 1, LAN 2, LAN 3. Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com> [included 2 more devices] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index b0bf413ca1..2a6dfa55bf 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -298,11 +298,8 @@ ar71xx_setup_interfaces()
omy-g1|\
r6100|\
smart-300|\
- tl-mr3420-v2|\
tl-wdr6500-v2|\
- tl-wr841n-v8|\
tl-wr940n-v4|\
- tl-wr941nd-v5|\
tl-wr941nd-v6|\
wnr1000-v2|\
wnr2000-v4|\
@@ -404,6 +401,14 @@ ar71xx_setup_interfaces()
ucidef_set_interface_wan "eth0"
ucidef_set_interface_raw "wlan" "wlan0" "dhcp"
;;
+ tl-mr3420-v2|\
+ tl-wr841n-v8|\
+ tl-wr842n-v2|\
+ tl-wr941nd-v5)
+ ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
+ ucidef_add_switch "switch0" \
+ "0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
+ ;;
tl-wdr4300|\
tl-wr1041n-v2)
ucidef_add_switch "switch0" \
@@ -431,11 +436,6 @@ ar71xx_setup_interfaces()
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.1" "eth0"
- ucidef_add_switch "switch0" \
- "0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
- ;;
uap-pro|\
wpj342)
ucidef_add_switch "switch0" \