diff options
author | Martin Weinelt <martin@darmstadt.freifunk.net> | 2016-11-02 16:10:44 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-11-16 01:42:15 +0100 |
commit | 5247ac2f805e39afe2e6e30980e439ea8b8ae7f8 (patch) | |
tree | bb990c762b402f92e379381a96c0c778d42f43ff /target/linux/ramips | |
parent | 7ef0d7c4fc80c32f52541950441acadbe363ca81 (diff) | |
download | upstream-5247ac2f805e39afe2e6e30980e439ea8b8ae7f8.tar.gz upstream-5247ac2f805e39afe2e6e30980e439ea8b8ae7f8.tar.bz2 upstream-5247ac2f805e39afe2e6e30980e439ea8b8ae7f8.zip |
ar71xx, ramips: reduce CPU load and flickering on devices using rsslieds
Polling every 40ms causes more than 10% CPU load on weak devices. An
interval of 200ms is much more reasonable.
Signed-off-by: Martin Weinelt <martin@darmstadt.freifunk.net>
[Matthias Schiffer: adapt OpenWrt patch; add ramips; extend commit message]
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'target/linux/ramips')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/01_leds | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 8d6bb459c4..0f1ad57f55 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -54,7 +54,7 @@ wf-2881) set_usb_led "$board:green:usb" ;; all0256n) - ucidef_set_rssimon "wlan0" "40000" "1" + ucidef_set_rssimon "wlan0" "200000" "1" ucidef_set_led_rssi "rssilow" "RSSILOW" "$board:green:rssilow" "wlan0" "1" "40" "0" "6" ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$board:green:rssimed" "wlan0" "30" "80" "-29" "5" ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$board:green:rssihigh" "wlan0" "70" "100" "-69" "8" @@ -313,7 +313,7 @@ whr-600d) ucidef_set_led_default "router" "router" "$board:green:router" "1" ;; wl-wn575a3) - ucidef_set_rssimon "wlan1" "40000" "1" + ucidef_set_rssimon "wlan1" "200000" "1" ucidef_set_led_rssi "wifi-low" "wifi-low" "$board:green:wifi-low" "wlan1" "1" "49" "0" "1" ucidef_set_led_rssi "wifi-med" "wifi-med" "$board:green:wifi-med" "wlan1" "50" "84" "0" "1" ucidef_set_led_rssi "wifi-high" "wifi-high" "$board:green:wifi-high" "wlan1" "85" "100" "0" "1" |