ramips: correct switch config of Youku yk1
authorShiji Yang <yangshiji66@qq.com>
Sun, 21 Mar 2021 09:01:49 +0000 (17:01 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 27 Mar 2021 15:54:15 +0000 (16:54 +0100)
There are only two lan ports and one wan port on Youku yk1

Fixes: e9baf8265bb8 ("ramips: add support for Youku YK1")
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
[add Fixes:]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/mt7620/base-files/etc/board.d/02_network

index 2d5c9c02dd0570614f1097e5fd179f4ff38db303..d85bdd822b659001eda532d2a541a641ea1190bb 100644 (file)
@@ -23,7 +23,6 @@ ramips_setup_interfaces()
        ralink,mt7620a-mt7610e-evb|\
        ralink,mt7620a-v22sg-evb|\
        sanlinking,d240|\
-       youku,yk1|\
        zbtlink,zbt-ape522ii|\
        zbtlink,zbt-we826-16m|\
        zbtlink,zbt-we826-32m|\
@@ -216,6 +215,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "4:wan" "6@eth0"
                ;;
+       youku,yk1)
+               ucidef_add_switch "switch0" \
+                       "0:lan" "1:lan" "4:wan" "6@eth0"
+               ;;
        zbtlink,zbt-we1026-5g-16m)
                ucidef_add_switch "switch0" \
                        "0:lan" "6t@eth0"