Merge pull request #1912 from Ansuel/fixassoci
authorJo-Philipp Wich <jo@mein.io>
Tue, 26 Jun 2018 12:34:58 +0000 (14:34 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 12:34:58 +0000 (14:34 +0200)
luci-mod-admin-full: fix missing wifi_assoclist

modules/luci-mod-admin-full/luasrc/controller/admin/network.lua

index a26d3d14e1d9ae5ede3379f59bab70f9d0100c1b..e04a964dd76a4e78cba815949775225ce27c282f 100644 (file)
@@ -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"