Automatically enable RTS when hidden nodes detected (#659)

This commit is contained in:
Tim Wilkinson 2023-01-19 11:11:30 -08:00 committed by GitHub
parent 7b8a2f2e8a
commit 78b8578a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ do
option enable '0'
option min_snr '15'
option margin_snr '1'
option rts_theshold '-1'
option rts_theshold '1'
option min_distance '0'
option max_distance '80467'
option min_quality '50'

View File

@ -59,7 +59,7 @@ function get_config()
return {
margin = tonumber(c:get("aredn", "@lqm[0]", "margin_snr")),
low = tonumber(c:get("aredn", "@lqm[0]", "min_snr")),
rts_theshold = tonumber(c:get("aredn", "@lqm[0]", "rts_theshold") or "-1"),
rts_theshold = tonumber(c:get("aredn", "@lqm[0]", "rts_theshold") or "1"),
min_distance = tonumber(c:get("aredn", "@lqm[0]", "min_distance")),
max_distance = tonumber(c:get("aredn", "@lqm[0]", "max_distance")),
auto_distance = tonumber(c:get("aredn", "@lqm[0]", "auto_distance") or "0"),

View File

@ -132,7 +132,7 @@ local settings = {
key = "aredn.@lqm[0].rts_theshold",
type = "string",
desc = "<b>RTS Threshold</b> in bytes before using RTS/CTS when hidden nodes are detected<br><br><small>aredn.@lqm[0].rts_theshold</small>",
default = "-1",
default = "1",
condition = "lqm_enabled()"
},
{