Hi Samuel
I was looking at failing autoconnect on Connman statup or when you turn
On/Off rfkill specially
for 8021x network. I did trace through and find these issues:
1- we do try connect while we are scanning, this cause the connection to
fail during 4-way
handshake, I guess it timeout since the system busy scanning. I can add
a check
for scan in __connman_service_create_from_network and defer calling
__connman_service_auto_connect once scan finish. by doing this my
autoconnect
become more reliable.
2- device->connections is not always has the right number of connection,
sometime I see
a value of -2 since we do call __connman_device_decrease_connections in
the wrong
place, in disconnect we might call __connman_device_decrease_connections
more than
once, the wrong value of device->connections will affect the calling of
__connman_service_auto_connect.
3- In connman_network_set_connected we have this code
if (device->disconnected == TRUE)
return 0;
Is this code needed? and if it is, are we keeping this value to reflect
the right state?
Thanks
Mohamed
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman