diff mbox

[OpenWrt-Devel] ar71xx: fix AR71XX_MODEL for TP-Link TL-WA830RE v1

Message ID 04ba79deabf8774203993813644a4f70a65e17dc.1433369141.git.mschiffer@universe-factory.net
State Accepted
Headers show

Commit Message

Matthias Schiffer June 3, 2015, 10:05 p.m. UTC
The v1 identifies as v10 internally. As there is no TL-WA830RE v10, add a
workaround to avoid confusing users.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
---
 target/linux/ar71xx/base-files/lib/ar71xx.sh | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index d5dd561..b13be1e 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -151,6 +151,10 @@  tplink_board_detect() {
 		;;
 	"083000"*)
 		model="TP-Link TL-WA830RE"
+
+		if [ "$hwver" = 'v10' ]; then
+			hwver='v1'
+		fi
 		;;
 	"084100"*)
 		model="TP-Link TL-WR841N/ND"