diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-06-26 14:34:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 14:34:58 +0200 |
commit | 62f5c22f8c2dbaf937a01030143dc8fed62dac93 (patch) | |
tree | f67664b69689c62421adb9ad63d76f461628a400 /modules/luci-mod-admin-full/luasrc/controller/admin | |
parent | c32097d7d525d0c3e960e558d1c561c9c596bf96 (diff) | |
parent | 5818a90dfd552be79d97d5e032ca6945480012a6 (diff) |
Merge pull request #1912 from Ansuel/fixassoci
luci-mod-admin-full: fix missing wifi_assoclist
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/controller/admin')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/controller/admin/network.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua b/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua index a26d3d14e1..e04a964dd7 100644 --- a/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua +++ b/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua @@ -43,6 +43,9 @@ function index() end) 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.leaf = true @@ -372,6 +375,13 @@ function wifi_shutdown(wnet) wifi_reconnect_shutdown(true, wnet) 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() local s = require "luci.tools.status" |