aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-09-14 20:12:16 +0000
committerJohn Crispin <john@openwrt.org>2015-09-14 20:12:16 +0000
commit0dbced8a484faeb8bea0c29a35c1b0f6d58dbf4c (patch)
treecfd44c89e6b47f7838bda8025b3b530f08428f1c /target/linux/ar71xx/base-files
parentbfeae90850fb7461773cc9f76be7e30955a65919 (diff)
downloadupstream-0dbced8a484faeb8bea0c29a35c1b0f6d58dbf4c.tar.gz
upstream-0dbced8a484faeb8bea0c29a35c1b0f6d58dbf4c.tar.bz2
upstream-0dbced8a484faeb8bea0c29a35c1b0f6d58dbf4c.zip
ar71xx: add TP-LINK TL-WDR3320 v2 support
This patch adds support for TP-LINK TL-WDR3320 v2. This router uses a chinese version 2 firmware header,. Signed-off-by: Weijie Gao <hackpascal@gmail.com> SVN-Revision: 46934
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh1
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/01_leds4
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/02_network1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh6
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
5 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 54fca1353c..6d56de9205 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -262,6 +262,7 @@ get_status_led() {
tl-wa901nd | \
tl-wa901nd-v2 | \
tl-wa901nd-v3 | \
+ tl-wdr3320-v2 | \
tl-wdr3500 | \
tl-wr1041n-v2 | \
tl-wr1043nd | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index c8eac126f3..4793e34d2e 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -437,6 +437,10 @@ tl-wa901nd-v2)
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
;;
+tl-wdr3320-v2)
+ ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:green:wlan5g" "phy0tpt"
+ ;;
+
tl-wdr3500)
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index d9053be5a4..509f0f1de2 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -436,6 +436,7 @@ tew-712br |\
tl-mr3220 |\
tl-mr3220-v2 |\
tl-mr3420 |\
+tl-wdr3320-v2 |\
tl-wdr3500 |\
tl-wr741nd |\
tl-wr741nd-v4 |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index dcf7006d9e..9f41a2b7e8 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -221,6 +221,9 @@ tplink_board_detect() {
"342000"*)
model="TP-Link TL-MR3420"
;;
+ "332000"*)
+ model="TP-Link TL-WDR3320"
+ ;;
"350000"*)
model="TP-Link TL-WDR3500"
;;
@@ -769,6 +772,9 @@ ar71xx_board_detect() {
*"TL-WA901ND v3")
name="tl-wa901nd-v3"
;;
+ *"TL-WDR3320 v2")
+ name="tl-wdr3320-v2"
+ ;;
*"TL-WDR3500")
name="tl-wdr3500"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 94cb97545c..b5ba47fb76 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -340,6 +340,7 @@ platform_check_image() {
tl-wa901nd | \
tl-wa901nd-v2 | \
tl-wa901nd-v3 | \
+ tl-wdr3320-v2 | \
tl-wdr3500 | \
tl-wdr4300 | \
tl-wdr4900-v2 | \