diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-08 20:22:15 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-08 20:22:15 +0000 |
commit | e183e134b86025fa301f5a52310993fcdf8f442b (patch) | |
tree | 50df15dd7508f901b28a54a238f3ef2ffcdde23a /modules/admin-full/luasrc/model | |
parent | d1fd6e702ee2ee9f2637c29dec2870ce308a9ba9 (diff) |
modules/admin-full: remove usage of wifi.channels()
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 7b88e7a9ef..d3a27b64ca 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 |