diff options
author | Andrea Merello <andrea.merello@gmail.com> | 2017-05-16 18:41:10 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-11-10 15:08:38 +0100 |
commit | f0716ecd6e807799c8e16bea72d6ea98ec803d1b (patch) | |
tree | f3182d42688d6d85e589c867170cf6f9495e97b4 /modules/luci-mod-admin-full/luasrc/model | |
parent | 084d8b120a3267ba9fb6b87a68dfcb86aed072fd (diff) |
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>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/model')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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 bd01bda9f7..83fdaadcbb 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")) |