modules/admin-full: remove usage of wifi.channels()

This commit is contained in:
Jo-Philipp Wich 2012-08-08 20:22:15 +00:00
parent d1fd6e702e
commit e183e134b8

View file

@ -166,7 +166,7 @@ if has_sta then
else
ch = s:taboption("general", Value, "channel", translate("Channel"))
ch:value("auto", translate("auto"))
for _, f in ipairs(iw and iw.freqlist or luci.sys.wifi.channels()) do
for _, f in ipairs(iw and iw.freqlist) do
if not f.restricted then
ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz / 1000 })
end