summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-06-26 14:34:58 +0200
committerGitHub <noreply@github.com>2018-06-26 14:34:58 +0200
commit62f5c22f8c2dbaf937a01030143dc8fed62dac93 (patch)
treef67664b69689c62421adb9ad63d76f461628a400 /modules/luci-mod-admin-full
parentc32097d7d525d0c3e960e558d1c561c9c596bf96 (diff)
parent5818a90dfd552be79d97d5e032ca6945480012a6 (diff)
Merge pull request #1912 from Ansuel/fixassoci
luci-mod-admin-full: fix missing wifi_assoclist
Diffstat (limited to 'modules/luci-mod-admin-full')
-rw-r--r--modules/luci-mod-admin-full/luasrc/controller/admin/network.lua10
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 a26d3d14e..e04a964dd 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"