luci-base: network.js: introduce further API functions
authorJo-Philipp Wich <jo@mein.io>
Thu, 7 Nov 2019 11:08:15 +0000 (12:08 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 Nov 2019 11:08:15 +0000 (12:08 +0100)
commita2dc6c8216e695d758a3667a9dbc299188b423cd
tree52a613bacafb583aa521941d9846b76ff7af5b02
parent861ec9e82128e151bfeda1a1343323adbddc181b
luci-base: network.js: introduce further API functions

 - Add Network.getWifiNetworks() to simplify fetching *all* networks
   instead of building a list by iterating each radio first

 - Add Network.WifiNetwork.isClientDisconnectSupported() to check whether
   a wireless network supports client disconnections

 - Add Network.WifiNetwork.disconnectClient() to trigger client
   disconnections via hostapd

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/network.js