[ITC][wifi-manager][Non-ACR][Sleep to wait for forget operation to be done] 94/249594/6
authorCheoleun Moon <chleun.moon@samsung.com>
Tue, 15 Dec 2020 07:47:58 +0000 (16:47 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Thu, 17 Dec 2020 09:41:37 +0000 (18:41 +0900)
Change-Id: I64ced58c133209cfbe1c15ee3e1a25f753f1d5c7

src/itc/wifi-manager/ITs-wifi-manager-ap.c

index a3e418e96f084f8934b600ea72876b01e2358153..c5bcd1bcebbae35b9c7e31bee746d7eaced4d947 100755 (executable)
@@ -1362,7 +1362,8 @@ int ITc_wifi_manager_get_connected_forget_refresh_ap_p(void)
 
        //Target API
        nRet =  wifi_manager_forget_ap(g_hWifi, hAP);
-       CHECK_RETURN(WIFI_MANAGER_ERROR_NONE, nRet, "wifi_manager_forget_ap", WifiManagerGetError(nRet));
+       PRINT_RESULT_CLEANUP(WIFI_MANAGER_ERROR_NONE, nRet, "wifi_manager_forget_ap", WifiManagerGetError(nRet), wifi_manager_ap_destroy(hAP));
+       sleep(5);
 
        nRet = wifi_manager_scan(g_hWifi, wifi_manager_scanned_callback, NULL);
        CHECK_RETURN(WIFI_MANAGER_ERROR_NONE, nRet, "wifi_manager_scan", WifiManagerGetError(nRet));
@@ -1370,9 +1371,9 @@ int ITc_wifi_manager_get_connected_forget_refresh_ap_p(void)
 
        //Target API
        nRet =  wifi_manager_ap_refresh(hAP);
-       PRINT_RESULT_CLEANUP(WIFI_MANAGER_ERROR_NONE, nRet, "wifi_manager_ap_refresh", WifiManagerGetError(nRet),wifi_manager_get_connected_ap(g_hWifi, &hAP));
+       PRINT_RESULT_CLEANUP(WIFI_MANAGER_ERROR_NONE, nRet, "wifi_manager_ap_refresh", WifiManagerGetError(nRet),wifi_manager_ap_destroy(hAP));
 
-       wifi_manager_get_connected_ap(g_hWifi, &hAP);
+       wifi_manager_ap_destroy(hAP);
 
        return 0;
 }