summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2020-12-06 02:11:18 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-01-05 19:09:17 +0000
commit4c66b3109761c82ce40f5b6a38af3c4e9f803bc2 (patch)
treea49b3d7bbaa1eab952da878495522ab9879ea1a7
parentfd017ba339e73536722248afe1478f3a99a73b02 (diff)
downloadrpcd-4c66b3109761c82ce40f5b6a38af3c4e9f803bc2.tar.gz
iwinfo: export center channel for info ubus call
Iwinfo export the center channel sued by the wifi. Include this data in the ubus info call to better know the channel utilizzation of the wifi. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
-rw-r--r--iwinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iwinfo.c b/iwinfo.c
index 1e172ee..c723fbc 100644
--- a/iwinfo.c
+++ b/iwinfo.c
@@ -364,6 +364,8 @@ rpc_iwinfo_info(struct ubus_context *ctx, struct ubus_object *obj,
rpc_iwinfo_call_int("mode", iw->mode, IWINFO_OPMODE_NAMES);
rpc_iwinfo_call_int("channel", iw->channel, NULL);
+ rpc_iwinfo_call_int("center_chan1", iw->center_chan1, NULL);
+ rpc_iwinfo_call_int("center_chan2", iw->center_chan2, NULL);
rpc_iwinfo_call_int("frequency", iw->frequency, NULL);
rpc_iwinfo_call_int("frequency_offset", iw->frequency_offset, NULL);