ar71xx: add user-space support for the EnGenius ESR900
authorGabor Juhos <juhosg@openwrt.org>
Mon, 14 Jul 2014 10:25:51 +0000 (10:25 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 14 Jul 2014 10:25:51 +0000 (10:25 +0000)
Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/5716/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 41641

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/etc/uci-defaults/02_network
target/linux/ar71xx/base-files/lib/ar71xx.sh

index a6ca71279b4b37996b620589b9829b3a5da6796d..af3439f8b95caec4ee476ffe03d0c5b594777ea3 100755 (executable)
@@ -75,6 +75,9 @@ get_status_led() {
        esr1750)
                status_led="esr1750:amber:power"
                ;;
+       esr900)
+               status_led="engenius:amber:power"
+               ;;
        hiwifi-hc6361)
                status_led="hiwifi:blue:system"
                ;;
index 41406eb01e26b3602ad848437a330f6ab3c5a6fc..34fed026b551cd366c845a57ca990eb3ef749253 100755 (executable)
@@ -110,6 +110,11 @@ gl-inet)
        ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt"
        ;;
 
+esr900)
+       ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
+       ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
+       ;;
+
 hiwifi-hc6361)
        ucidef_set_led_default "inet" "INET" "hiwifi:blue:internet" "0"
        ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
index cb3a83b301de2467160e3459d99e38c1654d0d04..d4fb5770ce10b770159663396b3087962f5106e3 100755 (executable)
@@ -266,6 +266,16 @@ wndr4300)
        [ -n "$mac_wan" ] && ucidef_set_interface_macaddr "wan" "$mac_wan"
        ;;
 
+esr900)
+       local mac
+       ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4"
+       ucidef_add_switch_vlan "switch0" "2" "0t 5"
+       mac=$(mtd_get_mac_ascii u-boot-env "wanaddr")
+       [ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
+       ;;
+
 all0305 |\
 aw-nr580 |\
 bullet-m |\
index cce8d25830041ff8dd9466fa2ac7fa12e7ccb159..bc26d8b1dc544a4f3c3c3bab5954369b03c7b7b0 100755 (executable)
@@ -328,6 +328,9 @@ ar71xx_board_detect() {
        *"EnGenius ESR1750")
                name="esr1750"
                ;;
+       *"EnGenius ESR900")
+               name="esr900"
+               ;;
        *JA76PF)
                name="ja76pf"
                ;;