summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);