Skip to content
Snippets Groups Projects
Commit a33e960f authored by rubo77's avatar rubo77
Browse files

lower suggeste and default TQ values

parent 35fa15bc
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,8 @@ ssid_changer = {
tq_limit_enabled = 0, -- if false, the offline SSID will only be set if there is no gateway reacheable
-- upper and lower limit to turn the offline_ssid on and off
-- in-between these two values the SSID will never be changed to prevent it from toggeling every minute.
tq_limit_max = '55', -- upper limit, above that the online SSID will be used
tq_limit_min = '45' -- lower limit, below that the offline SSID will be used
tq_limit_max = '45', -- upper limit, above that the online SSID will be used
tq_limit_min = '35' -- lower limit, below that the offline SSID will be used
},
```
......
......@@ -67,10 +67,10 @@ TQ_LIMIT_ENABLED="$(uci -q get ssid-changer.settings.tq_limit_enabled)"
if [ $TQ_LIMIT_ENABLED = 1 ]; then
TQ_LIMIT_MAX="$(uci -q get ssid-changer.settings.tq_limit_max)"
# upper limit, above that the online SSID will be used
: ${TQ_LIMIT_MAX:='55'}
: ${TQ_LIMIT_MAX:='45'}
TQ_LIMIT_MIN="$(uci -q get ssid-changer.settings.tq_limit_min)"
# lower limit, below that the offline SSID will be used
: ${TQ_LIMIT_MIN:='45'}
: ${TQ_LIMIT_MIN:='35'}
# grep the connection quality of the currently used gateway
GATEWAY_TQ=$(batctl gwl | grep -e "^=>" -e "^\*" | awk -F '[('')]' '{print $2}' | tr -d " ")
if [ ! $GATEWAY_TQ ]; then
......
......@@ -12,8 +12,8 @@ uci:section('ssid-changer', 'main', 'settings', {
prefix = site.ssid_changer.prefix or 'FF_OFFLINE_',
suffix = site.ssid_changer.suffix or 'nodename',
tq_limit_enabled = site.ssid_changer.tq_limit_enabled or '0',
tq_limit_max = site.ssid_changer.tq_limit_max or '55',
tq_limit_min = site.ssid_changer.tq_limit_min or '45',
tq_limit_max = site.ssid_changer.tq_limit_max or '45',
tq_limit_min = site.ssid_changer.tq_limit_min or '35',
})
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment