config: Run service autoconnect after provisioning the wifi service
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 22 Feb 2013 11:47:57 +0000 (13:47 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 22 Feb 2013 12:43:46 +0000 (14:43 +0200)
We trigger autoconnect request in service after the wifi service
has been provisioned. This is useful in headless systems where
there is no user to trigger the connect to provisioned service,
and it might take some time before system autoconnect is run.

src/config.c

index 19f17a2..7e6b8a2 100644 (file)
@@ -1197,6 +1197,8 @@ static void provision_service(gpointer key, gpointer value,
        __connman_service_mark_dirty();
 
        __connman_service_save(service);
+
+       __connman_service_auto_connect();
 }
 
 int __connman_config_provision_service(struct connman_service *service)