luci-app-olsr: use public interface of luci.model.network.wifinet (#569)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
397294ab06
commit
63155e9932
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue