Hi, It was discussed with sameo in IRC: Failure of Wi-Fi auto_connect The latest ConnMan refer device->connections only for checking auto_connect trigger and setting device->backoff_interval = SCAN_INITIAL_DELAY when device->connections == 0. However, device->connections is not updated properly in set_connected(); it increases twice one for ipv6 method and another for ipv4 method, but it decreases only by one. That makes impossible to Wi-Fi auto_connect.
I also agreed with sameo's last comment: <sameo> DannyJSSeo: Could you try building a patch that actually gets rid of device->connections entirely ? From connman_device_set_scanning() , simply call __connman_service_auto_connect(); without checking for device- >connections. <sameo> DannyJSSeo: __connman_service_auto_connect() already checks if we're connecting or not, so we can call it directly. So, all in all, I think we can just get rid of device->connections entirely, along with device_decrease_connections() and device_increase_connections(). Check my patch (based on latest 0.77.2 stable) and let's fix the issue together. Please get back to any comments Cheers, Danny JS Seo. ----------------------------------------------- Danny Jeongseok Seo Senior Engineer Platform R&D Team Mobile & Communication Division Telecommunication Network SAMSUNG Electronics Co., Ltd. Phone: +82-31-301-4561 E-mail: [email protected]
0001-device-clear-device-connections-and-auto_connect-che.patch
Description: Binary data
_______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
