Modify handling case for not found ssid
authorhwajeong.son <hwajeong.son@samsung.com>
Mon, 1 Oct 2018 10:52:22 +0000 (19:52 +0900)
committerhwajeong.son <hwajeong.son@samsung.com>
Mon, 1 Oct 2018 10:52:22 +0000 (19:52 +0900)
If ssid is not able to find, setup-adaptor has to be retried to re connect next booting.
In order to provide the scenario __Wifl_scan_finished_ca() would be waited forever.
And systemd kills the service.

src/setup_network.c

index e873ebb083f61c0c2b5ba2ffa0a1f7b0831a4944..6d865d844c7083edd0987f52ba17f257b18aa252 100755 (executable)
@@ -280,7 +280,7 @@ static void __wifi_scan_finished_cb(wifi_manager_error_e result, void *user_data
                _E("Fail to connect (can't get AP list) [%s]", __print_wifi_error(rv));
 
        _D("Connection step finished");
-       __wifi_exit_loop(wifi_data);
+       // If ssid is not able to find, setup-adaptor service will be completed by systemd
 }
 
 static void __wifi_state_changed_cb(wifi_manager_device_state_e state, void *user_data)