brcm47xx: fix switch port mapping on Asus RT-N12 and RT-N16 models
authorJo-Philipp Wich <jo@mein.io>
Wed, 19 Jul 2017 08:39:10 +0000 (10:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 21 Jul 2017 06:09:45 +0000 (08:09 +0200)
commitf2fdd68664cdf09075e6f18b20946e41a22284b2
treee11fe2abc29a1183acfe2a25c9b567593b2a2a73
parent1ab227d68852c1cb869926057774540bded24d41
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>
target/linux/brcm47xx/base-files/etc/board.d/01_detect