diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-08 20:25:00 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-08 20:25:00 +0000 |
commit | 92fc96f6fd74f5301667c67552115d9d6f74ae4a (patch) | |
tree | ca7535415a967c73c70c6fb55ef1b97ec317fd13 | |
parent | 11aa47342394c538977981b0c68a6c5dd42bfb56 (diff) |
modules/niu: remove usage of wifi.channels()
-rw-r--r-- | modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua b/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua index 2b748ad9d5..3ecbf5f4a2 100644 --- a/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua +++ b/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua @@ -30,13 +30,13 @@ local nsantenna = cursor:get("wireless", device, "antenna") local iw = nil local tx_powers = {} -local chan = sys.wifi.channels() +local chan = {} state:foreach("wireless", "wifi-iface", function(s) if s.device == device and not iw then iw = sys.wifi.getiwinfo(s.ifname or s.device) - chan = sys.wifi.channels(s.ifname or s.device) + chan = iw and iw.freqlist or { } tx_powers = iw.txpwrlist or { } end end) |