From 3f704405276c86db17052df234179bc5a7f24aae Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Fri, 20 Nov 2015 00:04:59 +0100
Subject: [PATCH] ar71xx: fix AR71XX_MODEL on TP-Link TL-WR703N

---
 ...ix-AR71XX_MODEL-on-TP-Link-TL-WR703N.patch | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 patches/openwrt/0039-ar71xx-fix-AR71XX_MODEL-on-TP-Link-TL-WR703N.patch

diff --git a/patches/openwrt/0039-ar71xx-fix-AR71XX_MODEL-on-TP-Link-TL-WR703N.patch b/patches/openwrt/0039-ar71xx-fix-AR71XX_MODEL-on-TP-Link-TL-WR703N.patch
new file mode 100644
index 000000000..4d10da302
--- /dev/null
+++ b/patches/openwrt/0039-ar71xx-fix-AR71XX_MODEL-on-TP-Link-TL-WR703N.patch
@@ -0,0 +1,20 @@
+From: Matthias Schiffer <mschiffer@universe-factory.net>
+Date: Thu, 19 Nov 2015 23:29:17 +0100
+Subject: ar71xx: fix AR71XX_MODEL on TP-Link TL-WR703N
+
+The hwid check was wrong, causing the AR71XX_MODEL value to end with a
+space (as $hwver was unset).
+
+diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
+index 9c7c139..388cf38 100755
+--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
++++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
+@@ -122,7 +122,7 @@ tplink_board_detect() {
+ 	"3C0002"*)
+ 		model="MINIBOX_V1"
+ 		;;
+-	"070300"*)
++	"070301"*)
+ 		model="TP-Link TL-WR703N"
+ 		;;
+ 	"071000"*)
-- 
GitLab