aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-09-23 15:34:34 +0200
committerDavid Bauer <mail@david-bauer.net>2019-09-25 22:42:03 +0200
commitfddea2030e9679c303c07613d9ec162bad9cbf6e (patch)
tree39d5bd0664835a75b5c397be961e741f8d984a9a /target/linux
parent724875b8d051b2b66cf3f02fe2ab3a554ba76d2b (diff)
downloadupstream-fddea2030e9679c303c07613d9ec162bad9cbf6e.tar.gz
upstream-fddea2030e9679c303c07613d9ec162bad9cbf6e.tar.bz2
upstream-fddea2030e9679c303c07613d9ec162bad9cbf6e.zip
ath79: remove redundant ucidef_set_interfaces_* calls in 02_network
If already included in ucidef_add_switch, you do not have to additionally set the interface mode in ucidef_set_interfaces_* functions. This patch removes/adjusts such redundant cases. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index 0608a1fc43..15371a1dd9 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -116,7 +116,6 @@ ath79_setup_interfaces()
;;
comfast,cf-wr650ac-v1|\
comfast,cf-wr650ac-v2)
- ucidef_set_interfaces_lan_wan "eth0" "eth1"
ucidef_add_switch "switch0" \
"0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "6@eth1"
;;
@@ -196,7 +195,7 @@ ath79_setup_interfaces()
netgear,wndr3700v2|\
netgear,wndr3800|\
netgear,wndr3800ch)
- ucidef_set_interfaces_lan_wan "eth0" "eth1"
+ ucidef_set_interface_wan "eth1"
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth0"
ucidef_add_switch_attr "switch0" "blinkrate" 2