From 1297679f4bbd47000d3ee36ed0f09efd7c581e76 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 16 Sep 2015 08:31:40 +0000 Subject: ar71xx: Add UBNT airGateway Pro support This patch adds kernel and userspace support for the Ubiquiti Networks airGateway Pro. Signed-off-by: Matthew Reeve SVN-Revision: 46961 --- target/linux/ar71xx/base-files/etc/diag.sh | 3 ++- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 3 ++- target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 7 +++++++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 15 insertions(+), 2 deletions(-) (limited to 'target/linux/ar71xx/base-files') diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 6d56de9205..cfba6b4ad0 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -311,7 +311,8 @@ get_status_led() { unifi-outdoor-plus) status_led="ubnt:white:front" ;; - airgateway) + airgateway | \ + airgatewaypro) status_led="ubnt:white:status" ;; whr-g301n | \ diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index 4793e34d2e..fac4751b70 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -9,7 +9,8 @@ board=$(ar71xx_board_name) case "$board" in -airgateway) +airgateway | \ +airgatewaypro) ucidef_set_led_wlan "wlan" "WLAN" "ubnt:blue:wlan" "phy0tpt" ;; alfa-nx) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index 509f0f1de2..1f61972067 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -86,6 +86,13 @@ cpe510) ucidef_add_switch_vlan "switch0" "2" "0t 4" ;; +airgatewaypro) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 4" + ucidef_add_switch_vlan "switch0" "2" "0t 5" + ;; + db120 |\ rb-2011l | \ rb-2011uas |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 9f41a2b7e8..d46aa27002 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -329,6 +329,9 @@ ar71xx_board_detect() { *"AirGateway") name="airgateway" ;; + *"AirGateway Pro") + name="airgatewaypro" + ;; *"AirRouter") name="airrouter" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index b5ba47fb76..cad8b4333a 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -227,6 +227,7 @@ platform_check_image() { tew-732br | \ wrt400n | \ airgateway | \ + airgatewaypro | \ airrouter | \ bullet-m | \ loco-m-xw | \ -- cgit v1.2.3