From 91a00084575621d786d5cc49b202012d293b3baa Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Sat, 21 Nov 2020 02:01:41 +0100 Subject: luci-mod-status: add channel analysis support Add channel analysis support. This can be very useful as a user can directly use the webui to check wifi channel utilization without using external tool. This use data already provided by iwinfo. Fixes: #4572 Signed-off-by: Ansuel Smith --- .../root/usr/share/luci/menu.d/luci-mod-status.json | 13 +++++++++++++ .../root/usr/share/rpcd/acl.d/luci-mod-status.json | 9 +++++++++ 2 files changed, 22 insertions(+) (limited to 'modules/luci-mod-status/root/usr') diff --git a/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json b/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json index e8eee643d5..0f066e67ad 100644 --- a/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json +++ b/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json @@ -71,6 +71,19 @@ } }, + "admin/status/channel_analysis": { + "title": "Channel Analysis", + "order": 7, + "action": { + "type": "view", + "path": "status/channel_analysis" + }, + "depends": { + "acl": [ "luci-mod-status-channel_analysis" ], + "uci": { "wireless": { "@wifi-device": true } } + } + }, + "admin/status/realtime": { "title": "Realtime Graphs", "order": 7, diff --git a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json index 05569d7603..4c9067db15 100644 --- a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json +++ b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json @@ -56,6 +56,15 @@ } }, + "luci-mod-status-channel_analysis": { + "description": "Grant access to the system route status", + "read": { + "ubus": { + "iwinfo": [ "info", "freqlist" ] + } + } + }, + "luci-mod-status-firewall": { "description": "Grant access to firewall status", "read": { -- cgit v1.2.3