From 87a74eedc6239c3c8e64011bbf5121769de029b7 Mon Sep 17 00:00:00 2001 From: Andrea Merello Date: Tue, 16 May 2017 18:41:10 +0200 Subject: [PATCH] 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 (backported from commit f0716ecd6e807799c8e16bea72d6ea98ec803d1b) --- .../luasrc/model/cbi/admin_network/network.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 385e1141e..a804d8eea 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 @@ -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 -- 2.25.1