Removed delay for checking network state v0.1-enable_ethernet
authorwansu.yoo <wansu.yoo@samsung.com>
Tue, 2 Jan 2018 04:38:09 +0000 (13:38 +0900)
committerwansu.yoo <wansu.yoo@samsung.com>
Tue, 2 Jan 2018 04:38:09 +0000 (13:38 +0900)
there need some delay for sync after network setting
but delay is not proper method for waiting
so, remove delay and check routine
it have to be considered through callback or others

Signed-off-by: wansu.yoo <wansu.yoo@samsung.com>
src/setup_network.c

index 8c1ebfe..2542a39 100644 (file)
@@ -714,12 +714,5 @@ sa_error_e sa_setup_network(sa_network_s *network)
        // 2. if it is connected, read detail info
        ret = __network_connect(network);
 
-       // need to delay to sync with setting...
-       sleep(5);
-       ret = __network_get_state(&conn_state, &conn_type);
-       if (ret == SA_ERROR_NONE) {
-               _D("Device Network : T[%s] S[%s]", __print_network_type(conn_type), __print_connection_state(conn_state));
-       }
-
        return ret;
 }