mirror of https://github.com/aredn/aredn.git
Automatically enable RTS when hidden nodes detected (#659)
This commit is contained in:
parent
7b8a2f2e8a
commit
78b8578a06
|
@ -7,7 +7,7 @@ do
|
||||||
option enable '0'
|
option enable '0'
|
||||||
option min_snr '15'
|
option min_snr '15'
|
||||||
option margin_snr '1'
|
option margin_snr '1'
|
||||||
option rts_theshold '-1'
|
option rts_theshold '1'
|
||||||
option min_distance '0'
|
option min_distance '0'
|
||||||
option max_distance '80467'
|
option max_distance '80467'
|
||||||
option min_quality '50'
|
option min_quality '50'
|
||||||
|
|
|
@ -59,7 +59,7 @@ function get_config()
|
||||||
return {
|
return {
|
||||||
margin = tonumber(c:get("aredn", "@lqm[0]", "margin_snr")),
|
margin = tonumber(c:get("aredn", "@lqm[0]", "margin_snr")),
|
||||||
low = tonumber(c:get("aredn", "@lqm[0]", "min_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")),
|
min_distance = tonumber(c:get("aredn", "@lqm[0]", "min_distance")),
|
||||||
max_distance = tonumber(c:get("aredn", "@lqm[0]", "max_distance")),
|
max_distance = tonumber(c:get("aredn", "@lqm[0]", "max_distance")),
|
||||||
auto_distance = tonumber(c:get("aredn", "@lqm[0]", "auto_distance") or "0"),
|
auto_distance = tonumber(c:get("aredn", "@lqm[0]", "auto_distance") or "0"),
|
||||||
|
|
|
@ -132,7 +132,7 @@ local settings = {
|
||||||
key = "aredn.@lqm[0].rts_theshold",
|
key = "aredn.@lqm[0].rts_theshold",
|
||||||
type = "string",
|
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>",
|
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()"
|
condition = "lqm_enabled()"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue