Author: juhosg Date: 2014-07-14 12:25:51 +0200 (Mon, 14 Jul 2014) New Revision: 41641
Modified: trunk/target/linux/ar71xx/base-files/etc/diag.sh trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh Log: ar71xx: add user-space support for the EnGenius ESR900 Signed-off-by: Forest Crossman <[email protected]> Patchwork: http://patchwork.openwrt.org/patch/5716/ Signed-off-by: Gabor Juhos <[email protected]> Modified: trunk/target/linux/ar71xx/base-files/etc/diag.sh =================================================================== --- trunk/target/linux/ar71xx/base-files/etc/diag.sh 2014-07-14 10:25:51 UTC (rev 41640) +++ trunk/target/linux/ar71xx/base-files/etc/diag.sh 2014-07-14 10:25:51 UTC (rev 41641) @@ -75,6 +75,9 @@ esr1750) status_led="esr1750:amber:power" ;; + esr900) + status_led="engenius:amber:power" + ;; hiwifi-hc6361) status_led="hiwifi:blue:system" ;; Modified: trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds =================================================================== --- trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds 2014-07-14 10:25:51 UTC (rev 41640) +++ trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds 2014-07-14 10:25:51 UTC (rev 41641) @@ -110,6 +110,11 @@ 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" Modified: trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network =================================================================== --- trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network 2014-07-14 10:25:51 UTC (rev 41640) +++ trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network 2014-07-14 10:25:51 UTC (rev 41641) @@ -266,6 +266,16 @@ [ -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 |\ Modified: trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh =================================================================== --- trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh 2014-07-14 10:25:51 UTC (rev 41640) +++ trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh 2014-07-14 10:25:51 UTC (rev 41641) @@ -328,6 +328,9 @@ *"EnGenius ESR1750") name="esr1750" ;; + *"EnGenius ESR900") + name="esr900" + ;; *JA76PF) name="ja76pf" ;; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
