mirror of
https://github.com/openwrt/luci.git
synced 2026-02-04 12:06:01 +08:00
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:
committed by
Jo-Philipp Wich
parent
b78664c2cd
commit
87a74eedc6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user