ubus: include SSID in node dump
authorDavid Bauer <mail@david-bauer.net>
Mon, 15 Aug 2022 23:44:22 +0000 (01:44 +0200)
committerDavid Bauer <mail@david-bauer.net>
Wed, 17 Aug 2022 20:57:33 +0000 (22:57 +0200)
Include a nodes SSID into the ubus dump.

Signed-off-by: David Bauer <mail@david-bauer.net>
ubus.c

diff --git a/ubus.c b/ubus.c
index 8aaf5f1e0d6995904e7548d454cddc699a976a28..756f25332ed0c9179edbc4672a0aa9f0f4170276 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -293,6 +293,7 @@ void usteer_dump_node(struct blob_buf *buf, struct usteer_node *node)
 
        c = blobmsg_open_table(buf, usteer_node_name(node));
        blobmsg_printf(buf, "bssid", MAC_ADDR_FMT, MAC_ADDR_DATA(node->bssid));
+       blobmsg_add_string(buf, "ssid", node->ssid);
        blobmsg_add_u32(buf, "freq", node->freq);
        blobmsg_add_u32(buf, "n_assoc", node->n_assoc);
        blobmsg_add_u32(buf, "noise", node->noise);