modules/admin-full: cope with undefined frequency lists
This commit is contained in:
parent
d0b04df5c9
commit
02ac6686fe
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ if has_sta then
|
||||||
else
|
else
|
||||||
ch = s:taboption("general", Value, "channel", translate("Channel"))
|
ch = s:taboption("general", Value, "channel", translate("Channel"))
|
||||||
ch:value("auto", translate("auto"))
|
ch:value("auto", translate("auto"))
|
||||||
for _, f in ipairs(iw and iw.freqlist) do
|
for _, f in ipairs(iw and iw.freqlist or { }) do
|
||||||
if not f.restricted then
|
if not f.restricted then
|
||||||
ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz / 1000 })
|
ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz / 1000 })
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue