[UTC][wifi-manager][Non-ACR][Update pre-condition code to reduce the impact of enviro... 88/215688/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Mon, 14 Oct 2019 08:18:04 +0000 (17:18 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 14 Oct 2019 08:18:04 +0000 (17:18 +0900)
Change-Id: I279697729f14eb884d997e98b1881166fe6738ad
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/utc/wifi-manager/utc-wifi-manager-common.c
src/utc/wifi-manager/utc-wifi-manager-common.h

index 12cee8d46892666f7fbbc2d6dc59b356fbb64c6a..377119ed021a6c9727896baabb5bf5249831a6a0 100755 (executable)
@@ -465,9 +465,10 @@ int wifi_manager_pre_connect(void)
        for (int i = 0; i < PRE_CONNECT_RETRY; i++) {
                ret = _wifi_manager_pre_connect();
 
-               if (ret != WIFI_MANAGER_ERROR_NONE)
+               if (ret != WIFI_MANAGER_ERROR_NONE) {
+                       sleep(5);
                        continue;
-               else
+               else
                        break;
        }
 
index c1decdcdb48161ab9d66e6c058410a54710d769a..05f9af21f29414765e7ae2e2fb1d6cf509563298 100755 (executable)
@@ -27,7 +27,7 @@
 #define WIFI_MANAGER_DEBUG                     1
 #define CONFIG_VALUE_LEN_MAX           1024
 #define GMAINTIMEOUT                           20000
-#define PRE_CONNECT_RETRY                      3
+#define PRE_CONNECT_RETRY                      5
 #define WIFI_CONFIG_LEN                                64
 #define WIFI_AP_NAME                           "AccessPoint"
 #define WIFI_AP_PASSPHRASE                     "Passphrase"