aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/base-files/etc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-07-19 10:39:10 +0200
committerJo-Philipp Wich <jo@mein.io>2017-07-21 08:09:45 +0200
commitf2fdd68664cdf09075e6f18b20946e41a22284b2 (patch)
treee11fe2abc29a1183acfe2a25c9b567593b2a2a73 /target/linux/brcm47xx/base-files/etc
parent1ab227d68852c1cb869926057774540bded24d41 (diff)
downloadupstream-f2fdd68664cdf09075e6f18b20946e41a22284b2.tar.gz
upstream-f2fdd68664cdf09075e6f18b20946e41a22284b2.tar.bz2
upstream-f2fdd68664cdf09075e6f18b20946e41a22284b2.zip
brcm47xx: fix switch port mapping on Asus RT-N12 and RT-N16 models
On Asus RT-N12 and RT-N16 models, the WAN and LAN4 ports are swapped in the initial switch configuration since the presets present in nvram appear to be wrong. Add special casing for these models to detect_by_model() in order to ensure a proper switch configuration. Fixes FS#502. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/linux/brcm47xx/base-files/etc')
-rwxr-xr-xtarget/linux/brcm47xx/base-files/etc/board.d/01_detect2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/base-files/etc/board.d/01_detect b/target/linux/brcm47xx/base-files/etc/board.d/01_detect
index f1022dc13a..04d13950a7 100755
--- a/target/linux/brcm47xx/base-files/etc/board.d/01_detect
+++ b/target/linux/brcm47xx/base-files/etc/board.d/01_detect
@@ -144,6 +144,8 @@ detect_by_model() {
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
+ "Asus RT-N12"* | \
+ "Asus RT-N16"* | \
"Asus WL500GP V2" | \
"Buffalo WHR-G125" | \
"Motorola WR850G" | \