ar71xx: Added missing support for Linksys E2100L
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / ar71xx.sh
index a4aece8db78fb96c8d8187ca201074cdfab5b2c9..63fd188eabcd1f6de54d6e2bef327a26539efcc3 100755 (executable)
@@ -76,18 +76,18 @@ ubnt_xm_board_detect() {
        case ${magic:0:3} in
                "e00"|\
                "e01"|\
-               "e80")  # Different revisions of the NanoStation?
+               "e80")
                        model="Ubiquiti NanoStation M"
                        ;;
                "e0a")
                        model="Ubiquiti NanoStation loco M"
                        ;;
-               "e1b"|\ # Note: the M5 / M5 Ti haven't yet been verified
-               "e1d")  # Rocket M Ti
+               "e1b"|\
+               "e1d")
                        model="Ubiquiti Rocket M"
                        ;;
                "e20"|\
-               "e2d")  # Bullet M Ti
+               "e2d")
                        model="Ubiquiti Bullet M"
                        ;;
                "e30")
@@ -350,27 +350,10 @@ tplink_pharos_get_model_string() {
 tplink_pharos_board_detect() {
        local model_string="$(tplink_pharos_get_model_string | tr -d '\r')"
        local oIFS="$IFS"; IFS=":"; set -- $model_string; IFS="$oIFS"
-       local model
 
-       case "$1" in
-       'CPE210(TP-LINK|UN|N300-2)')
-               model='TP-Link CPE210'
-               ;;
-       'CPE220(TP-LINK|UN|N300-2)')
-               model='TP-Link CPE220'
-               ;;
-       'CPE510(TP-LINK|UN|N300-5)')
-               model='TP-Link CPE510'
-               ;;
-       'CPE520(TP-LINK|UN|N300-5)')
-               model='TP-Link CPE520'
-               ;;
-       'EAP120(TP-LINK|UN|N300-2)')
-               model='TP-Link EAP120'
-               ;;
-       esac
+       local model="${1%%\(*}"
 
-       [ -n "$model" ] && AR71XX_MODEL="$model v$2"
+       AR71XX_MODEL="TP-Link $model v$2"
 }
 
 gl_inet_board_detect() {
@@ -435,9 +418,6 @@ ar71xx_board_detect() {
        *"Arduino Yun")
                name="arduino-yun"
                ;;
-       *AP113)
-               name="ap113"
-               ;;
        *"AP121 reference board")
                name="ap121"
                ;;
@@ -465,12 +445,6 @@ ar71xx_board_detect() {
        *"AP152 reference board")
                name="ap152"
                ;;
-       *AP81)
-               name="ap81"
-               ;;
-       *AP83)
-               name="ap83"
-               ;;
        *AP90Q)
                name="ap90q"
                ;;
@@ -603,6 +577,9 @@ ar71xx_board_detect() {
        *"DW33D")
                name="dw33d"
                ;;
+       *E2100L)
+               name="e2100l"
+               ;;
        *"EAP120")
                name="eap120"
                tplink_pharos_board_detect
@@ -787,9 +764,6 @@ ar71xx_board_detect() {
        *"PB44 reference board")
                name="pb44"
                ;;
-       *PB92)
-               name="pb92"
-               ;;
        *"Qihoo 360 C301")
                name="qihoo-c301"
                ;;
@@ -905,6 +879,9 @@ ar71xx_board_detect() {
        *SOM9331)
                name="som9331"
                ;;
+       *SR3200)
+               name="sr3200"
+               ;;
        *TEW-632BRP)
                name="tew-632brp"
                ;;
@@ -1190,6 +1167,9 @@ ar71xx_board_detect() {
        *WHR-HP-G300N)
                name="whr-hp-g300n"
                ;;
+       *XD3200)
+               name="xd3200"
+               ;;
        *Z1)
                name="z1"
                ;;