ar71xx: fix the revision of a few TP-LINK devices in AR71XX_MODEL to match labels...
authorJohn Crispin <john@openwrt.org>
Fri, 1 Apr 2016 07:12:00 +0000 (07:12 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 1 Apr 2016 07:12:00 +0000 (07:12 +0000)
Let's not confuse users about the revisions of their devices when we can
easily avoid it.

Not tested on real hardware.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 49107

target/linux/ar71xx/base-files/lib/ar71xx.sh

index 182299802b3583122d3150cf5c1a12bec6d15fe1..6b8550acacfba42b07cb6c0de9aed02a34ed51e2 100755 (executable)
@@ -137,6 +137,10 @@ tplink_board_detect() {
                ;;
        "071000"*)
                model="TP-Link TL-WR710N"
+
+               if [ "$hwid" = '07100002' -a "$mid" = '00000002' ]; then
+                       hwver=' v2.1'
+               fi
                ;;
        "072001"*)
                model="TP-Link TL-WR720N"
@@ -177,6 +181,10 @@ tplink_board_detect() {
                ;;
        "084100"*)
                model="TP-Link TL-WR841N/ND"
+
+               if [ "$hwid" = '08410002' -a "$mid" = '00000002' ]; then
+                       hwver=' v1.5'
+               fi
                ;;
        "084200"*)
                model="TP-Link TL-WR842N/ND"