[UTC][wifi-manager][Non-ACR][Update TC code to fit changed scan logic] 49/215749/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Tue, 15 Oct 2019 07:47:19 +0000 (16:47 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Tue, 15 Oct 2019 07:47:19 +0000 (16:47 +0900)
Change-Id: I1ef898c79e67692e22fe46843507832a1e83aa6f
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/utc/wifi-manager/utc-wifi-manager.c

index c01668857c7cc849d191f97daebe0e69e44cc0ed..3c0d10efc1170f04ef03ba2df255bd754b674533 100755 (executable)
@@ -1467,6 +1467,11 @@ int utc_wifi_manager_connect_hidden_ap_p(void)
                 return 0;
         }
 
+       ret = wifi_manager_scan(g_hWifi, wifi_manager_scanned_callback, NULL);
+       PRINT_RETURN("wifi_manager_scan", ret);
+       RUN_GMAIN_LOOP;
+       CHECK_RETURN(CALLBACK_RETURN, ret, WIFI_MANAGER_ERROR_NONE);
+
        ret = wifi_manager_connect_hidden_ap(g_hWifi, ap_name, 2, ap_passphrase, wifi_manager_connected_callback, NULL);
        RUN_GMAIN_LOOP;
        CHECK_RETURN("wifi_manager_connect_hidden_ap", ret, WIFI_MANAGER_ERROR_NONE);