ar71xx: Support for Ubiquiti UniFi AP AC LITE
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / ar71xx.sh
index 61dcbbadd284df072beb21dbc61cc79e0fe4d2b8..3203273d5750aa7af199216213c639de8698e8bb 100755 (executable)
@@ -39,7 +39,7 @@ wndr3700_board_detect() {
        "33373031")
                model="$(ar71xx_get_mtd_offset_size_format art 41 32 %c)"
                # Use awk to remove everything unprintable
-               model_stripped="$(echo -n "$model" | LC_CTYPE=C awk -v 'FS=[^[:print:]]' '{print $1; exit}')"
+               model_stripped="$(ar71xx_get_mtd_offset_size_format art 41 32 %c | LC_CTYPE=C awk -v 'FS=[^[:print:]]' '{print $1; exit}')"
                case $model in
                $'\xff'*)
                        if [ "${model:24:1}" = 'N' ]; then
@@ -824,6 +824,9 @@ ar71xx_board_detect() {
        *"TL-WA801ND v2")
                name="tl-wa801nd-v2"
                ;;
+       *"TL-WA801ND v3")
+               name="tl-wa801nd-v3"
+               ;;
        *TL-WA901ND)
                name="tl-wa901nd"
                ;;
@@ -905,6 +908,9 @@ ar71xx_board_detect() {
        *UniFi)
                name="unifi"
                ;;
+       *"UniFi-AC")
+               name="unifiac"
+               ;;
        *"UniFi AP Pro")
                name="uap-pro"
                ;;
@@ -974,6 +980,9 @@ ar71xx_board_detect() {
        *"WNR1000 V2")
                name="wnr1000-v2"
                ;;
+       *WPN824N)
+               name="wpn824n"
+               ;;
        *WRT160NL)
                name="wrt160nl"
                ;;