aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-02-24 12:00:50 +0000
committerJohn Crispin <blogic@openwrt.org>2015-02-24 12:00:50 +0000
commit48fe4e99f2336a9ab3d3d7220e52160e6bce776a (patch)
tree4c8d2425da1a52dfe457e99db29b1a13b8804d8a /target/linux/ar71xx/base-files
parent23193222d4c9d692bf4c73d7e4347f19637cb002 (diff)
downloadupstream-48fe4e99f2336a9ab3d3d7220e52160e6bce776a.tar.gz
upstream-48fe4e99f2336a9ab3d3d7220e52160e6bce776a.tar.bz2
upstream-48fe4e99f2336a9ab3d3d7220e52160e6bce776a.zip
ar71xx: TL-WA7210n v2 support
This patch adds support for TP-Link TL-WA7210n[0] [0] http://www.tplink.com/en/products/details/?model=TL-WA7210N Signed-off-by: Hendrik Frenzel <hfrenzel@scunc.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44526 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/01_leds9
-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
4 files changed, 17 insertions, 0 deletions
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 a4838d6474..a83a4fc50e 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -298,6 +298,15 @@ tl-mr3420-v2)
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;
+tl-wa7210n-v2)
+ ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
+ ucidef_set_rssimon "wlan0" "40000" "1"
+ ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:signal1" "wlan0" "1" "100" "0" "13"
+ ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:signal2" "wlan0" "26" "100" "-25" "13"
+ ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:signal3" "wlan0" "51" "100" "-50" "13"
+ ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:signal4" "wlan0" "76" "100" "-75" "13"
+ ;;
+
tl-wa750re)
ucidef_set_led_netdev "lan" "LAN" "tp-link:orange:lan" "eth0"
ucidef_set_led_wlan "wlan" "WLAN" "tp-link:orange:wlan" "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 efc212ecc7..fdefb5abef 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -325,6 +325,7 @@ tl-mr3020 |\
tl-mr3040 |\
tl-mr3040-v2 |\
tl-wa701nd-v2 |\
+tl-wa7210n-v2 |\
tl-wa750re |\
tl-wa850re |\
tl-wa830re-v2 |\
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 6247f86fb0..52acc6b39e 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -130,6 +130,9 @@ tplink_board_detect() {
"075000"*)
model="TP-Link TL-WA750RE"
;;
+ "721000"*)
+ model="TP-Link TL-WA7210N"
+ ;;
"751000"*)
model="TP-Link TL-WA7510N"
;;
@@ -651,6 +654,9 @@ ar71xx_board_detect() {
*"TL-WA701ND v2")
name="tl-wa701nd-v2"
;;
+ *"TL-WA7210N v2")
+ name="tl-wa7210n-v2"
+ ;;
*TL-WA750RE)
name="tl-wa750re"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index f81c0ff72e..15fcf8915f 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -312,6 +312,7 @@ platform_check_image() {
tl-mr3420 | \
tl-mr3420-v2 | \
tl-wa701nd-v2 | \
+ tl-wa7210n-v2 | \
tl-wa7510n | \
tl-wa750re | \
tl-wa850re | \