When wpasupplicant is roaming between APs it exposes all states to connman.
After the wifi network is connected, we should not set associating state
anymore. Otherwise we just end up into weird states.
---
plugins/wifi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/wifi.c b/plugins/wifi.c
index d036a92..dc19b79 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -396,7 +396,8 @@ static void interface_state(GSupplicantInterface *interface)
case G_SUPPLICANT_STATE_AUTHENTICATING:
case G_SUPPLICANT_STATE_ASSOCIATING:
- connman_network_set_associating(network, TRUE);
+ if (!connman_network_get_connected(network))
+ connman_network_set_associating(network, TRUE);
break;
case G_SUPPLICANT_STATE_COMPLETED:
--
1.7.1
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman