From f0716ecd6e807799c8e16bea72d6ea98ec803d1b Mon Sep 17 00:00:00 2001 From: Andrea Merello Date: Tue, 16 May 2017 18:41:10 +0200 Subject: luci-mod-admin-full: add SNR tweak option to DSL Reported-by: Andrea Merello [rebase onto master, fix indentation, commit subject, depend on adsl mode] Signed-off-by: Jo-Philipp Wich --- .../luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua index bd01bda9f..83fdaadcb 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua @@ -54,6 +54,12 @@ if fs.access("/etc/init.d/dsl_control") then line_mode:value("", translate("auto")) 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 end firmware = dsl:option(Value, "firmware", translate("Firmware File")) -- cgit v1.2.3