Indicate scanning state while not associated
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Dec 2008 14:58:59 +0000 (15:58 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Dec 2008 14:58:59 +0000 (15:58 +0100)
plugins/wifi.c

index be2358c..aa6021d 100644 (file)
@@ -217,6 +217,11 @@ static void state_change(struct connman_element *device,
 
        DBG("state %d", state);
 
+       if (state == STATE_SCANNING)
+               connman_element_set_scanning(device, TRUE);
+       else
+               connman_element_set_scanning(device, FALSE);
+
        if (data == NULL)
                return;