projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11aa473
)
modules/niu: remove usage of wifi.channels()
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 8 Aug 2012 20:25:00 +0000
(20:25 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 8 Aug 2012 20:25:00 +0000
(20:25 +0000)
modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua
patch
|
blob
|
history
diff --git
a/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua
b/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua
index 2b748ad9d57e7c4c2c51271aacb74ea6ddcf6496..3ecbf5f4a2757efe80d5e5ac915556d21d487563 100644
(file)
--- 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)