summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-12-09 16:51:48 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-12-09 16:51:48 +0100
commit63155e99325d2f7b57eee99496648e7a3cf6c14b (patch)
tree542cfe3e3ae581b7dd3d8a86995da8d76326ed24 /applications
parent397294ab06b2f228263ceb3d1435db3d282e715f (diff)
luci-app-olsr: use public interface of luci.model.network.wifinet (#569)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-olsr/luasrc/controller/olsr.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/applications/luci-app-olsr/luasrc/controller/olsr.lua b/applications/luci-app-olsr/luasrc/controller/olsr.lua
index cfadd9b7c..9a997bdc1 100644
--- a/applications/luci-app-olsr/luasrc/controller/olsr.lua
+++ b/applications/luci-app-olsr/luasrc/controller/olsr.lua
@@ -171,11 +171,12 @@ function action_neigh(json)
for _, dev in ipairs(devices) do
for _, net in ipairs(dev:get_wifinets()) do
+ local radio = net:get_device()
assoclist[#assoclist+1] = {}
- assoclist[#assoclist]['ifname'] = net.iwdata.ifname
- assoclist[#assoclist]['network'] = net.iwdata.network
- assoclist[#assoclist]['device'] = net.iwdata.device
- assoclist[#assoclist]['list'] = net.iwinfo.assoclist
+ assoclist[#assoclist]['ifname'] = net:ifname()
+ assoclist[#assoclist]['network'] = net:network()[1]
+ assoclist[#assoclist]['device'] = radio and radio:name() or nil
+ assoclist[#assoclist]['list'] = net:assoclist()
end
end