luci2.wireless: add getPhyName() rpc call
[project/luci2/ui.git] / luci2 / htdocs / luci2 / wireless.js
index 39121a6..1ba6b81 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',