luci2.wireless: add getPhyName() rpc call
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 13 Feb 2015 22:47:44 +0000 (23:47 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 13 Feb 2015 22:47:44 +0000 (23:47 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
luci2/htdocs/luci2/wireless.js
luci2/share/acl.d/luci2.json

index 39121a63fbd7dda89d03b54ec12b5dd964061c69..1ba6b81471b1e3895c9f4c163e9caa3b0ed73448 100644 (file)
@@ -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',
index 9e2147467e26ea11d4fee31f34cd8d462be2275f..30ef91c7e929c9b8c10c2a9c10f0b62fac21fe5d 100644 (file)
@@ -35,7 +35,8 @@
                                "iwinfo": [
                                        "devices",
                                        "info",
-                                       "assoclist"
+                                       "assoclist",
+                                       "phyname"
                                ],
                                "system": [
                                        "info",