summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-04 20:30:58 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-10-04 20:30:58 +0200
commit17b62be2fc7334443da7807cebd30372105f0a38 (patch)
tree20d2400f4724ed61167103bc1b8f37f22b4c1a9d
parent26cb3b2a0aebb1b9dc07daf7b54bd8400d6d659b (diff)
wireless: print the active configuration in status info
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--wireless.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wireless.c b/wireless.c
index 33fab45..c9443bd 100644
--- a/wireless.c
+++ b/wireless.c
@@ -691,8 +691,7 @@ wireless_interface_status(struct wireless_interface *iface, struct blob_buf *b)
blobmsg_add_string(b, "section", iface->section);
if (iface->ifname)
blobmsg_add_string(b, "ifname", iface->ifname);
- if (iface->data)
- blob_put_raw(b, blob_data(iface->data), blob_len(iface->data));
+ put_container(b, iface->config, "config");
blobmsg_close_table(b, i);
}
@@ -707,6 +706,7 @@ wireless_device_status(struct wireless_device *wdev, struct blob_buf *b)
blobmsg_add_u8(b, "pending", wdev->state == IFS_SETUP || wdev->state == IFS_TEARDOWN);
blobmsg_add_u8(b, "autostart", wdev->autostart);
blobmsg_add_u8(b, "disabled", wdev->disabled);
+ put_container(b, wdev->config, "config");
i = blobmsg_open_array(b, "interfaces");
vlist_for_each_element(&wdev->interfaces, iface, node)