summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-30 16:40:39 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-11-30 16:40:39 +0100
commit19112eb78a7878767d4ab3190f676ce3c1757614 (patch)
treea55964e00c6ac542c08c1fe4d1849f2ffaba9bd3
parent943ae5b9f838fa58d6048ca599d86526b5088b8c (diff)
wireless: show the ifname in wireless status
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--wireless.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wireless.c b/wireless.c
index 52d0eae..4819f92 100644
--- a/wireless.c
+++ b/wireless.c
@@ -633,6 +633,8 @@ wireless_interface_status(struct wireless_interface *iface, struct blob_buf *b)
void *i;
i = blobmsg_open_table(b, iface->name);
+ 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));
blobmsg_close_table(b, i);