ar71xx: fix AR71XX_MODEL for TP-Link TL-WA830RE v1
authorJohn Crispin <john@openwrt.org>
Fri, 5 Jun 2015 14:12:34 +0000 (14:12 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 5 Jun 2015 14:12:34 +0000 (14:12 +0000)
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>
SVN-Revision: 45903

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

index d5dd561e3b95153aec6ddddac8eb1c863e9c5c0c..b13be1e5f9f5c4a76eadbacbbd56a3f90edb0f94 100755 (executable)
@@ -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"