From: Jo-Philipp Wich Date: Wed, 8 Aug 2012 20:22:15 +0000 (+0000) Subject: modules/admin-full: remove usage of wifi.channels() X-Git-Tag: 0.11.0~410 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e183e134b86025fa301f5a52310993fcdf8f442b;p=oweals%2Fluci.git modules/admin-full: remove usage of wifi.channels() --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index 7b88e7a9e..d3a27b64c 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -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