ar71xx: add user space support for the TL-WR842N/ND v2
authorGabor Juhos <juhosg@openwrt.org>
Fri, 15 Nov 2013 10:11:24 +0000 (10:11 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 15 Nov 2013 10:11:24 +0000 (10:11 +0000)
Patch to add the user space support for the TL-WR842N/ND v2

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4354/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38814

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index b553205c0363a80e5eef6f78de3b5a5f3e5ec6ca..e314bc03dd8a15cde34fb0c174b7bd5218d84f52 100755 (executable)
@@ -146,6 +146,7 @@ get_status_led() {
        tl-wr841n-v1 | \
        tl-wr841n-v7 | \
        tl-wr841n-v8 | \
+       tl-wr842n-v2 | \
        tl-wr941nd)
                status_led="tp-link:green:system"
                ;;
index cde54f39092d9a5107f7dec406a7bf0d8a21c305..95b30c1b68e23a09e11f8b7c31fac99cc85f1798 100755 (executable)
@@ -229,7 +229,8 @@ tl-wr741nd-v4)
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
        ;;
 
-tl-wr841n-v8)
+tl-wr841n-v8 |\
+tl-wr842n-v2)
        ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0"
        ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
        ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
index 49db21bdc1bed9e9f7c0e1a79e8d0765fea45819..3bbfe999b3fb4a30f0708823b58feb17f2104f36 100755 (executable)
@@ -169,6 +169,7 @@ tl-wr941nd)
 
 tl-mr3420-v2 |\
 tl-wr841n-v8 |\
+tl-wr842n-v2 |\
 wnr2000-v3 |\
 wnr2200 |\
 wnr612-v2)
index cde8856284940a4344f9a71ca0e09e1ddf278b44..ebfe10f928ba23d3854d76dd6faa1e02e637d946 100755 (executable)
@@ -486,6 +486,9 @@ ar71xx_board_detect() {
        *"TL-WR841N/ND v8")
                name="tl-wr841n-v8"
                ;;
+       *"TL-WR842N/ND v2")
+               name="tl-wr842n-v2"
+               ;;
        *TL-WR941ND)
                name="tl-wr941nd"
                ;;
index 1eb9354057548529b91f1db04b5bbb9d66b8c46a..cb36772d8d441862a463b3496d1dbdf65bf72961 100755 (executable)
@@ -204,6 +204,7 @@ platform_check_image() {
        tl-wr841n-v1 | \
        tl-wr841n-v7 | \
        tl-wr841n-v8 | \
+       tl-wr842n-v2 | \
        tl-wr941nd | \
        tl-wr1041n-v2 | \
        tl-wr1043nd | \