aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt76x8
diff options
context:
space:
mode:
authorAndrey Butirsky <butirsky@gmail.com>2022-09-10 01:57:20 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2022-10-19 23:00:40 +0200
commit47d58afbdf208f162026159e33c66bd3f4eb159d (patch)
treed075a4124c4a81e2514f1d340450584752ba345f /target/linux/ramips/mt76x8
parent9a8e008188a11813a90b77ba32d24c0cca225bf9 (diff)
downloadupstream-47d58afbdf208f162026159e33c66bd3f4eb159d.tar.gz
upstream-47d58afbdf208f162026159e33c66bd3f4eb159d.tar.bz2
upstream-47d58afbdf208f162026159e33c66bd3f4eb159d.zip
ramips: kndrt31r19: set up wan interface by default
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>
Diffstat (limited to 'target/linux/ramips/mt76x8')
-rw-r--r--target/linux/ramips/mt76x8/base-files/etc/board.d/02_network8
1 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
index 963a20c653..38ff38bac5 100644
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
@@ -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"