ramips: kndrt31r19: set up wan interface by default
authorAndrey Butirsky <butirsky@gmail.com>
Fri, 9 Sep 2022 22:57:20 +0000 (01:57 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 19 Oct 2022 21:00:40 +0000 (23:00 +0200)
The only WAN port of the device is it's modem, so set it up as such

Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
target/linux/ramips/mt76x8/base-files/etc/board.d/02_network

index 963a20c653a3f8295440bd2126d5c7b244f1fa2a..38ff38bac5feafdc70441a0ea3624bef2b788189 100644 (file)
@@ -117,6 +117,13 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "1:lan" "2:lan" "6@eth0"
                ;;
+       kroks,kndrt31r19)
+               ucidef_add_switch "switch0" \
+                       "0:lan" "6@eth0"
+               ucidef_add_switch_attr "switch0" "enable" "false"
+               ucidef_set_interface_lan "eth0"
+               ucidef_set_interface "wan" device "/dev/cdc-wdm0" protocol "qmi"
+               ;;
        motorola,mwr03)
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "0:wan" "6@eth0"
@@ -132,7 +139,6 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
                ;;
-       kroks,kndrt31r19|\
        tplink,tl-mr3020-v3)
                ucidef_add_switch "switch0" \
                        "0:lan" "6@eth0"