aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-09-16 08:31:40 +0000
committerJohn Crispin <john@openwrt.org>2015-09-16 08:31:40 +0000
commit1297679f4bbd47000d3ee36ed0f09efd7c581e76 (patch)
tree640c892d7b4930c7c8a836af2013810d521dd745 /target/linux/ar71xx/base-files
parent08e0621f4e59c5e7c2c381223d051cb0000b1707 (diff)
downloadupstream-1297679f4bbd47000d3ee36ed0f09efd7c581e76.tar.gz
upstream-1297679f4bbd47000d3ee36ed0f09efd7c581e76.tar.bz2
upstream-1297679f4bbd47000d3ee36ed0f09efd7c581e76.zip
ar71xx: Add UBNT airGateway Pro support
This patch adds kernel and userspace support for the Ubiquiti Networks airGateway Pro. Signed-off-by: Matthew Reeve <mreeve at tenxnetworks.com> SVN-Revision: 46961
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/01_leds3
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/02_network7
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
5 files changed, 15 insertions, 2 deletions
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 | \