From c716d8e7e770eb2ad2be8a99be1543c211f964d4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 13 Feb 2015 23:47:44 +0100 Subject: [PATCH] luci2.wireless: add getPhyName() rpc call Signed-off-by: Jo-Philipp Wich --- luci2/htdocs/luci2/wireless.js | 7 +++++++ luci2/share/acl.d/luci2.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/luci2/htdocs/luci2/wireless.js b/luci2/htdocs/luci2/wireless.js index 39121a6..1ba6b81 100644 --- a/luci2/htdocs/luci2/wireless.js +++ b/luci2/htdocs/luci2/wireless.js @@ -9,6 +9,13 @@ Class.extend({ } }), + getPhyName: L.rpc.declare({ + object: 'iwinfo', + method: 'phyname', + params: [ 'section' ], + expect: { 'phyname': '' } + }), + getDeviceStatus: L.rpc.declare({ object: 'iwinfo', method: 'info', diff --git a/luci2/share/acl.d/luci2.json b/luci2/share/acl.d/luci2.json index 9e21474..30ef91c 100644 --- a/luci2/share/acl.d/luci2.json +++ b/luci2/share/acl.d/luci2.json @@ -35,7 +35,8 @@ "iwinfo": [ "devices", "info", - "assoclist" + "assoclist", + "phyname" ], "system": [ "info", -- 2.30.2