ar71xx: add support for TL-WR802N Version 2
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / ar71xx.sh
index 2ae4e1168fb47b2425b7e906ee987e3c02b89a73..ae0189d05b4dbb73f79d5c338a34f9db494595f7 100755 (executable)
@@ -220,6 +220,10 @@ tplink_board_detect() {
                ;;
        "080200"*)
                model="TP-Link TL-WR802N"
+
+               if [ "$hwid" = '08020002' -a "$mid" = '00000002' ]; then
+                       hwver=' v2'
+               fi
                ;;
        "083000"*)
                model="TP-Link TL-WA830RE"
@@ -1031,6 +1035,9 @@ ar71xx_board_detect() {
        *"TL-WR802N v1")
                name="tl-wr802n-v1"
                ;;
+       *"TL-WR802N v2")
+               name="tl-wr802n-v2"
+               ;;
        *TL-WA901ND)
                name="tl-wa901nd"
                ;;