[PATCH 2/3] ar71xx: add user-space support for LigoDLB series
Daniel Golle
daniel at makrotopia.org
Mon Aug 17 11:49:35 CEST 2015
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
target/linux/ar71xx/base-files/etc/diag.sh | 4 ++++
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 11 +++++++++++
target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 2 ++
target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 ++++++
4 files changed, 23 insertions(+)
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index cfba6b4..c259981 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -315,6 +315,10 @@ get_status_led() {
airgatewaypro)
status_led="ubnt:white:status"
;;
+ v2v-dlb515 | \
+ v2v-dlb520)
+ status_led="ligowave:green:power"
+ ;;
whr-g301n | \
whr-hp-g300n | \
whr-hp-gn | \
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 fac4751..a32320e 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -576,6 +576,17 @@ r6100)
ucidef_set_led_wlan "wlan" "WLAN" "netgear:blue:wlan" "phy1tpt"
;;
+v2v-dlb515 | \
+v2v-dlb520)
+ ucidef_set_led_power "power" "POWER" "ligowave:green:power" "1"
+ ucidef_set_led_netdev "lan" "LAN" "ligowave:green:lan" "eth0"
+ ucidef_set_rssimon "wlan0" "40000" "1"
+ ucidef_set_led_rssi "signal1" "SIGNAL1" "ligowave:yellow:rssilow" "wlan0" "1" "100" "0" "13"
+ ucidef_set_led_rssi "signal2" "SIGNAL2" "ligowave:yellow:rssimedlo" "wlan0" "26" "100" "-25" "13"
+ ucidef_set_led_rssi "signal3" "SIGNAL3" "ligowave:yellow:rssimedhi" "wlan0" "51" "100" "-50" "13"
+ ucidef_set_led_rssi "signal4" "SIGNAL4" "ligowave:yellow:rssihigh" "wlan0" "76" "100" "-75" "13"
+ ;;
+
wndr3700v4 | \
wndr4300)
ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
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 880953c..f176d1d 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -378,6 +378,8 @@ tl-wa901nd-v2 |\
tl-wa901nd-v3 |\
tl-wr703n |\
tube2h |\
+v2v-dlb515 |\
+v2v-dlb520 |\
wndap360 |\
mynet-rext |\
wp543)
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 4679a4b..9bd785c 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -508,6 +508,12 @@ ar71xx_board_detect() {
name="hornet-ub-x2"
fi
;;
+ *"LigoDLB 5-20")
+ name="v2v-dlb520"
+ ;;
+ *"LigoDLB 5-15")
+ name="v2v-dlb515"
+ ;;
*LS-SR71)
name="ls-sr71"
;;
--
2.6.0
--45Z9DzgjV8m4Oswq
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0003-ar71xx-add-profile-and-generate-images-for-LigoDLB-s.patch"
More information about the Battlemesh
mailing list