wireless: add retry_setup_failed to status notification
authorEduardo Abinader <eduardoabinader@gmail.com>
Wed, 24 Aug 2016 10:15:21 +0000 (12:15 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 24 Aug 2016 13:12:07 +0000 (15:12 +0200)
As autostart is now more aligned to user intention of automatic
starting the wdev, to add retry_setup_failed to status msg may be of a help
for current stating how setup is proceeding.

Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
wireless.c

index f5378482a5c3e24fdc990912ccdcbc2e37c9d468..2ce57745e5d67cb90183dd9b49e080a3ae33247d 100644 (file)
@@ -761,6 +761,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);
+       blobmsg_add_u8(b, "retry_setup_failed", wdev->retry_setup_failed);
        put_container(b, wdev->config, "config");
 
        i = blobmsg_open_array(b, "interfaces");