iwinfo: add mesh infos in assoclist.
authorDaniel Danzberger <daniel@dd-wrt.com>
Mon, 18 Feb 2019 21:35:07 +0000 (22:35 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 5 Mar 2019 18:51:54 +0000 (19:51 +0100)
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
iwinfo.c

index 983001ab2359ca04e11770e9e8de98bbd71c9eb4..a76b72a16341b94b45d8c99d5995cd6d6a1086bc 100644 (file)
--- a/iwinfo.c
+++ b/iwinfo.c
@@ -470,6 +470,13 @@ rpc_iwinfo_assoclist(struct ubus_context *ctx, struct ubus_object *obj,
                        blobmsg_add_u8(&buf, "mfp", a->is_mfp);
                        blobmsg_add_u8(&buf, "tdls", a->is_tdls);
 
+                       blobmsg_add_u16(&buf, "mesh llid", a->llid);
+                       blobmsg_add_u16(&buf, "mesh plid", a->plid);
+                       blobmsg_add_string(&buf, "mesh plink", a->plink_state);
+                       blobmsg_add_string(&buf, "mesh local PS", a->local_ps);
+                       blobmsg_add_string(&buf, "mesh peer PS", a->peer_ps);
+                       blobmsg_add_string(&buf, "mesh non-peer PS", a->nonpeer_ps);
+
                        e = blobmsg_open_table(&buf, "rx");
                        blobmsg_add_u64(&buf, "drop_misc", a->rx_drop_misc);
                        blobmsg_add_u32(&buf, "packets", a->rx_packets);