wifi: Set connected to false before associating when disconnected
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Thu, 26 Apr 2012 07:30:20 +0000 (10:30 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Apr 2012 07:56:02 +0000 (09:56 +0200)
This way it will trigger the error which will be reported to service.

plugins/wifi.c

index 6f750e5..126f7a5 100644 (file)
@@ -1225,8 +1225,8 @@ static void interface_state(GSupplicantInterface *interface)
                                                FALSE) != 0)
                        DBG("Could not disables selected network");
 
-               connman_network_set_associating(network, FALSE);
                connman_network_set_connected(network, FALSE);
+               connman_network_set_associating(network, FALSE);
 
                start_autoscan(device);