aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2018-08-02 15:14:10 +0800
committerMathias Kresin <dev@kresin.me>2018-08-06 07:31:54 +0200
commit3804134369aad07ee92d11dc3531bd52cbba19cc (patch)
tree5c1024ea17ad14d6fb2d5d3e154b7bb9de4fe53c /target/linux
parent690c55e8cc409f00774d2e0ac8e8456f8d90c946 (diff)
downloadupstream-3804134369aad07ee92d11dc3531bd52cbba19cc.tar.gz
upstream-3804134369aad07ee92d11dc3531bd52cbba19cc.tar.bz2
upstream-3804134369aad07ee92d11dc3531bd52cbba19cc.zip
ath79: fix support for TL-MR3020 v1
Change lan and it's LED to eth0 It's broken since c7c807cb8c3fd6538101de885f66d4681785defe where I changed the dts but forgot to change default configurations. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/01_leds2
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network6
2 files changed, 2 insertions, 6 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds
index 5cb8e13963..4443a5545a 100755
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -46,7 +46,7 @@ case "$board" in
ucidef_set_led_netdev "lan_link" "LAN Link" "tp-link:green:lan_link" "eth0" "link"
;;
"tplink,tl-mr3020-v1")
- ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x02"
+ ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
;;
"tplink,tl-wr1043nd-v4")
ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
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 b7c2213d56..2cffbee39e 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -17,6 +17,7 @@ ath79_setup_interfaces()
"pcs,cap324"|\
"tplink,re450-v2"|\
"tplink,tl-mr10u"|\
+ "tplink,tl-mr3020-v1"|\
"tplink,tl-wr703n"|\
"ubnt,unifiac-lite"|\
"ubnt,unifiac-mesh"|\
@@ -59,11 +60,6 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth1" "2:lan" "3:lan" "4:lan" "5:lan" "6@eth0" "1:wan"
;;
-
- "tplink,tl-mr3020-v1")
- ucidef_set_interface_lan "eth0.1"
- ucidef_add_switch "switch0" "0@eth0" "1:lan"
- ;;
"tplink,tl-mr3220-v1"|\
"tplink,tl-mr3420-v1"|\
"tplink,tl-wr841-v7")