diff options
author | David Lutz <kpanic@hirnduenger.de> | 2016-12-12 15:59:03 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-12-16 11:12:46 +0100 |
commit | aada15af93db6bfb248239f011bafe22c613fbf3 (patch) | |
tree | f043529ea943d1a6b389981c080ce14fd336027e /target/linux/ar71xx/base-files | |
parent | 93227e4d3fb81332f1dcb6eaa158ddf914ca67a6 (diff) | |
download | upstream-aada15af93db6bfb248239f011bafe22c613fbf3.tar.gz upstream-aada15af93db6bfb248239f011bafe22c613fbf3.tar.bz2 upstream-aada15af93db6bfb248239f011bafe22c613fbf3.zip |
ar71xx: add support for TP-LINK TL-WR940N v4
Signed-off-by: David Lutz <kpanic@hirnduenger.de>
Diffstat (limited to 'target/linux/ar71xx/base-files')
6 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index dcdaab022d..a840e2f4cb 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -599,6 +599,7 @@ tl-wpa8630) tl-wr802n-v1) ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt" ;; +tl-wr940n-v4|\ tl-wr941nd-v6) ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0" ucidef_set_led_switch "lan1" "LAN1" "tp-link:blue:lan1" "switch0" "0x10" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index d23d243861..89076055c3 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -265,6 +265,7 @@ ar71xx_setup_interfaces() tl-mr3420-v2|\ tl-wdr6500-v2|\ tl-wr841n-v8|\ + tl-wr940n-v4|\ tl-wr941nd-v5|\ tl-wr941nd-v6|\ wnr1000-v2|\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 6b88036dbb..d9d8a2953e 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -372,6 +372,7 @@ get_status_led() { tl-wr720n-v3|\ tl-wr802n-v1|\ tl-wr810n|\ + tl-wr940n-v4|\ tl-wr941nd-v6) status_led="tp-link:blue:system" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 63fd188eab..2cfd017be9 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -250,6 +250,9 @@ tplink_board_detect() { "090100"*) model="TP-Link TL-WA901N/ND" ;; + "094000"*) + model="TP-Link TL-WR940N" + ;; "094100"*) if [ "$hwid" = "09410002" -a "$mid" = "00420001" ]; then model="Rosewill RNX-N360RT" @@ -1029,6 +1032,9 @@ ar71xx_board_detect() { *"TL-WR941N/ND v6") name="tl-wr941nd-v6" ;; + *"TL-WR940N v4") + name="tl-wr940n-v4" + ;; *"TL-WR703N v1") name="tl-wr703n" ;; diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx index ae632e0ea4..d677599d8c 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx @@ -37,6 +37,7 @@ set_preinit_iface() { tl-wr841n-v8 |\ tl-wr842n-v2 |\ tl-wr941nd-v6 |\ + tl-wr940n-v4 |\ wnr2000-v3 |\ wnr2200 |\ wnr612-v2 |\ diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 52719c0067..42cc1dd947 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -396,6 +396,7 @@ platform_check_image() { tl-wr842n-v3|\ tl-wr941nd-v5|\ tl-wr941nd-v6|\ + tl-wr940n-v4|\ tl-wr941nd) local magic_ver="0100" |