aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJulius Schulz-Zander <julius@inet.tu-berlin.de>2016-10-21 11:47:15 +0200
committerJohn Crispin <john@phrozen.org>2016-10-26 12:37:45 +0200
commita71a8955f20e3c3ac13323072a70362f3c9d80fd (patch)
tree4c2b7dc4a48bea3a2716c5ec4e2b5ed58e7eac4d /target/linux/ar71xx/base-files
parentda1b33fc4dcab8453b70b4ee87e7b46a34c99acb (diff)
downloadupstream-a71a8955f20e3c3ac13323072a70362f3c9d80fd.tar.gz
upstream-a71a8955f20e3c3ac13323072a70362f3c9d80fd.tar.bz2
upstream-a71a8955f20e3c3ac13323072a70362f3c9d80fd.zip
ar71xx: add support for TP-Link WR802N v1
This patch adds support solely for version 1 of the TP-Link WR802N. It is based on Rick Pannen's patch posted on the OpenWrt devel list. Signed-off-by: Julius Schulz-Zander <julius@inet.tu-berlin.de>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh6
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
5 files changed, 12 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 89d0b5892b..9734189fd5 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -516,6 +516,9 @@ archer-c7)
ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy1tpt"
ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy0tpt"
;;
+tl-wr802n-v1)
+ ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
+ ;;
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 eaf67180e8..35a7407ef7 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -106,6 +106,7 @@ ar71xx_setup_interfaces()
tl-wa901nd-v3|\
tl-wa901nd-v4|\
tl-wr703n|\
+ tl-wr802n-v1|\
tube2h|\
unifiac-lite|\
wndap360|\
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index e225ddbbb5..475cb80397 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -351,6 +351,7 @@ get_status_led() {
tl-wr703n|\
tl-wr710n|\
tl-wr720n-v3|\
+ tl-wr802n-v1|\
tl-wr810n|\
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 85f5bf27dd..fb375a5e15 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -217,6 +217,9 @@ tplink_board_detect() {
"080100"*)
model="TP-Link TL-WA801N/ND"
;;
+ "080200"*)
+ model="TP-Link TL-WR802N"
+ ;;
"083000"*)
model="TP-Link TL-WA830RE"
@@ -949,6 +952,9 @@ ar71xx_board_detect() {
*"TL-WA801ND v3")
name="tl-wa801nd-v3"
;;
+ *"TL-WR802N v1")
+ name="tl-wr802n-v1"
+ ;;
*TL-WA901ND)
name="tl-wa901nd"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index e98c3ce4e1..46f014306f 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -371,6 +371,7 @@ platform_check_image() {
tl-wr720n-v3|\
tl-wr741nd-v4|\
tl-wr741nd|\
+ tl-wr802n-v1|\
tl-wr810n|\
tl-wr841n-v11|\
tl-wr841n-v1|\