summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-04-26 10:30:20 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-04-26 09:56:02 +0200
commit41ac2566edce6654383a2f212567114621fcc834 (patch)
treea03eb55787238db44a0af7d863dea57cdf73a3c7
parentb92241ff6c42441d0b0f57f3db9a2a0028bfdfa7 (diff)
downloadconnman-41ac2566edce6654383a2f212567114621fcc834.tar.gz
connman-41ac2566edce6654383a2f212567114621fcc834.tar.bz2
connman-41ac2566edce6654383a2f212567114621fcc834.zip
wifi: Set connected to false before associating when disconnected
This way it will trigger the error which will be reported to service.
-rw-r--r--plugins/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 6f750e53..126f7a58 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -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);