|
|
|
@ -124,25 +124,28 @@ o = s:option(Value, "key", translate("Key"))
|
|
|
|
|
o.default = "easymesh"
|
|
|
|
|
o:depends("encryption", 1)
|
|
|
|
|
|
|
|
|
|
---- kvr
|
|
|
|
|
enable = s:option(Flag, "kvr", translate("K/V/R"), translate(""))
|
|
|
|
|
enable.default = 1
|
|
|
|
|
enable.rmempty = false
|
|
|
|
|
|
|
|
|
|
o = s:option(Value, "mobility_domain", translate("Mobility Domain"), translate("4-character hexadecimal ID"))
|
|
|
|
|
o.default = "4f57"
|
|
|
|
|
o.datatype = "and(hexstring,rangelength(4,4))"
|
|
|
|
|
o:depends("kvr", 1)
|
|
|
|
|
|
|
|
|
|
o = s:option(Value, "rssi_val", translate("Threshold for an good RSSI"))
|
|
|
|
|
o.default = "-60"
|
|
|
|
|
o.atatype = "range(-1,-120)"
|
|
|
|
|
o:depends("kvr", 1)
|
|
|
|
|
|
|
|
|
|
o = s:option(Value, "low_rssi_val", translate("Threshold for an bad RSSI"))
|
|
|
|
|
o.default = "-88"
|
|
|
|
|
o.atatype = "range(-1,-120)"
|
|
|
|
|
o:depends("kvr", 1)
|
|
|
|
|
-- Add a new tab called "Advanced" to the existing "Setup" section
|
|
|
|
|
s:tab("advanced", translate("Advanced Settings"))
|
|
|
|
|
|
|
|
|
|
-- Move K/V/R settings to the "Advanced" tab
|
|
|
|
|
enable_kvr = s:taboption("advanced", Flag, "kvr", translate("K/V/R"), translate("Enable Key Value Roaming"))
|
|
|
|
|
enable_kvr.default = 1
|
|
|
|
|
enable_kvr.rmempty = false
|
|
|
|
|
|
|
|
|
|
mobility_domain = s:taboption("advanced", Value, "mobility_domain", translate("Mobility Domain"), translate("4-character hexadecimal ID"))
|
|
|
|
|
mobility_domain.default = "4f57"
|
|
|
|
|
mobility_domain.datatype = "and(hexstring,rangelength(4,4))"
|
|
|
|
|
mobility_domain:depends("kvr", 1)
|
|
|
|
|
|
|
|
|
|
rssi_val = s:taboption("advanced", Value, "rssi_val", translate("Threshold for a good RSSI"))
|
|
|
|
|
rssi_val.default = "-60"
|
|
|
|
|
rssi_val.datatype = "range(-1,-120)"
|
|
|
|
|
rssi_val:depends("kvr", 1)
|
|
|
|
|
|
|
|
|
|
low_rssi_val = s:taboption("advanced", Value, "low_rssi_val", translate("Threshold for a bad RSSI"))
|
|
|
|
|
low_rssi_val.default = "-88"
|
|
|
|
|
low_rssi_val.datatype = "range(-1,-120)"
|
|
|
|
|
low_rssi_val:depends("kvr", 1)
|
|
|
|
|
|
|
|
|
|
---- Apply MESH settings
|
|
|
|
|
--ctrl = m:section(TypedSection, "easymesh", "Apply Mesh WiFi Settings to Server or Node")
|
|
|
|
|