luci-mod-admin-full: add SNR tweak option to DSL
Reported-by: Andrea Merello <andrea.merello@gmail.com>
[rebase onto master, fix indentation, commit subject, depend on adsl mode]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit f0716ecd6e
)
This commit is contained in:
parent
b78664c2cd
commit
87a74eedc6
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ if fs.access("/etc/init.d/dsl_control") then
|
|||
line_mode:value("adsl", translate("ADSL"))
|
||||
line_mode:value("vdsl", translate("VDSL"))
|
||||
|
||||
ds_snr = dsl:option(ListValue, "ds_snr_offset", translate("Downstream SNR offset"))
|
||||
ds_snr:depends("line_mode", "adsl")
|
||||
for i = -50, 50, 5 do
|
||||
ds_snr:value(i, translate("%.1f dB" %{ i / 10} ))
|
||||
end
|
||||
|
||||
firmware = dsl:option(Value, "firmware", translate("Firmware File"))
|
||||
|
||||
m.pageaction = true
|
||||
|
|
Loading…
Reference in a new issue