diff options
author | Lech Perczak <lech.perczak@gmail.com> | 2018-08-21 23:20:36 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-08-23 22:42:15 +0200 |
commit | 4f3d7001384475e14e37a2f0216adf1df5f8d888 (patch) | |
tree | 30a837c8d79977140aee4ef91f2ca7c53f3ed199 /target/linux | |
parent | d40956a74c34000fb7ab83fa7deeaa6535ef4e5d (diff) | |
download | upstream-4f3d7001384475e14e37a2f0216adf1df5f8d888.tar.gz upstream-4f3d7001384475e14e37a2f0216adf1df5f8d888.tar.bz2 upstream-4f3d7001384475e14e37a2f0216adf1df5f8d888.zip |
ath79: ubnt-xm: create mapping for RSSI LEDs
Ubiquiti XM series boards contain a set of RSSI LEDs. Create an UCI
mapping for them, so visual feedback on RSSI is available, when using
userspace RSSI monitor daemon.
Runtime tested using rssileds.
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Diffstat (limited to 'target/linux')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/01_leds | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index 9d63254a67..db0d12cce0 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -92,6 +92,13 @@ tplink,tl-wr841-v11) ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04" ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02" ;; +ubnt,bullet-m|\ +ubnt,nano-m|\ +ubnt,rocket-m) + ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" + ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" + ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "ubnt:green:link3" "wlan0" "51" "100" + ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "ubnt:green:link4" "wlan0" "76" "100" esac board_config_flush |