wireless: show the ifname in wireless status
authorFelix Fietkau <nbd@openwrt.org>
Sat, 30 Nov 2013 15:40:39 +0000 (16:40 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 30 Nov 2013 15:40:39 +0000 (16:40 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
wireless.c

index 52d0eae5203f1ee37828f8f76f98a202c29adc67..4819f92076959ed5a8641523bf9c6cfe96994989 100644 (file)
@@ -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);