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)
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

index f1022dc13a744a258cfbb1e7634071f323c87715..04d13950a78ea4df5be75a8d63137fa54986e60b 100755 (executable)
@@ -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" | \