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 17:39:42 +0000 (18:39 +0100)
commitbba3fdcccffca787817e95a08d95a60575342854
treea82898df065530c8e1485d20b6ee1ccae50715c0
parent73b4d438e81f0fe94bbd3d31f45c32d7611aa453
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>
(cherry picked from commit a2dc6c8216e695d758a3667a9dbc299188b423cd)
modules/luci-base/htdocs/luci-static/resources/network.js