diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-12-06 18:20:07 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-12-14 18:43:48 +0100 |
commit | 98b14e0906cfe476da7a007cbf467b73b4c85acf (patch) | |
tree | 21cbe212eab34f8731b5ca6637981412a807d42b | |
parent | 21cb84435a9fcc1b94b30a672d6d3a8751fe9afb (diff) | |
download | upstream-98b14e0906cfe476da7a007cbf467b73b4c85acf.tar.gz upstream-98b14e0906cfe476da7a007cbf467b73b4c85acf.tar.bz2 upstream-98b14e0906cfe476da7a007cbf467b73b4c85acf.zip |
ar71xx: fix TL-WR842N v2 switch port order
The TL-WR842N v2 has the following switch port layout with swconfig port 0
being connected to eth1:
Power LAN4 LAN3 LAN2 LAN1 WAN USB
(*) | [...] | [...] | [...] | [...] | [...] | [.]
swconfig port: 1 4 3 2 n/a
netdev: eth1 eth1 eth1 eth1 eth0
Adjust the board defaults to match this model specific layout.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/board.d/02_network | 6 |
1 files changed, 5 insertions, 1 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 2f603af817..d23d243861 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -265,7 +265,6 @@ ar71xx_setup_interfaces() tl-mr3420-v2|\ tl-wdr6500-v2|\ tl-wr841n-v8|\ - tl-wr842n-v2|\ tl-wr941nd-v5|\ tl-wr941nd-v6|\ wnr1000-v2|\ @@ -388,6 +387,11 @@ ar71xx_setup_interfaces() ucidef_set_interface_raw "eth" "eth0" ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" ;; + tl-wr842n-v2) + ucidef_set_interfaces_lan_wan "eth1" "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" \ |