luci-mod-admin-full: fix missing wifi_assoclist
With #e5ba594d77eed77d31d4b9b8c0e86026eb5a5fac the list of the connected device broke up. This fix this problem by creating a proper request link. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
parent
24fb852054
commit
5818a90dfd
1 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,9 @@ function index()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if has_wifi then
|
if has_wifi then
|
||||||
|
page = entry({"admin", "network", "wireless_assoclist"}, call("wifi_assoclist"), nil)
|
||||||
|
page.leaf = true
|
||||||
|
|
||||||
page = entry({"admin", "network", "wireless_join"}, post("wifi_join"), nil)
|
page = entry({"admin", "network", "wireless_join"}, post("wifi_join"), nil)
|
||||||
page.leaf = true
|
page.leaf = true
|
||||||
|
|
||||||
|
@ -372,6 +375,13 @@ function wifi_shutdown(wnet)
|
||||||
wifi_reconnect_shutdown(true, wnet)
|
wifi_reconnect_shutdown(true, wnet)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function wifi_assoclist()
|
||||||
|
local s = require "luci.tools.status"
|
||||||
|
|
||||||
|
luci.http.prepare_content("application/json")
|
||||||
|
luci.http.write_json(s.wifi_assoclist())
|
||||||
|
end
|
||||||
|
|
||||||
function lease_status()
|
function lease_status()
|
||||||
local s = require "luci.tools.status"
|
local s = require "luci.tools.status"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue