luci-base: support disconnecting (deauthenticating) wireless clients
authorWang805447391 <805447391@qq.com>
Mon, 12 Nov 2018 07:03:31 +0000 (15:03 +0800)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Nov 2018 07:28:45 +0000 (08:28 +0100)
commit09ac96ede9f15119ee08c34ba05f885aeaa8e449
tree1a7164224606a86654bcbbb75dd925b5d43077a1
parent8aeb78d1c1893e1bcf0e3a8f8a2c17fa6ffbb6d2
luci-base: support disconnecting (deauthenticating) wireless clients

Add a button to each row in the wireless assoclist table to allow
disconnecting clients using the ubus del_client method if the underlying
radio interface supports it.

Ref: https://github.com/openwrt/luci/pull/2271
Submitted-by: Wang805447391 <805447391@qq.com>
[move deauth function to luci-base next to the existing assoclist function,
 require post security, fix parameter check condition, hide button if not
 supported by the radio, disable button after call, squash commits, fix
 whitespace, reword subject, add commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/controller/admin/index.lua
modules/luci-base/luasrc/view/wifi_assoclist.htm