mediatek: filogic: fix failsafe mode on devices with no lan1
authorPaul Geraedts <p.f.j.geraedts@gmail.com>
Sat, 24 Feb 2024 08:01:01 +0000 (09:01 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 23 May 2024 19:50:00 +0000 (21:50 +0200)
commitc82c1178c1577422b62c90a52fa412929696d491
treef6b9ab7fd191deca77b175d7a1c5df5c3a614df4
parenta6bb1df40bc8819ac01ee169c429f0f36c25ed38
mediatek: filogic: fix failsafe mode on devices with no lan1

Default to lan4 port, instead of (missing) lan1 port,
to fix failsafe mode on Xiaomi AX3000T, WR30U, AX6000

Build system: x86/64
Build-tested: mediatek/filogic/xiaomi_mi-router-ax3000t-ubootmod
Run-tested: mediatek/filogic/xiaomi_mi-router-ax3000t-ubootmod

Signed-off-by: Paul Geraedts <p.f.j.geraedts@gmail.com>
(cherry picked from commit 8256d06933e7542ecdd427b6a0ef4e87bb37d3f4)
target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface