From: Jaehyun Kim Date: Mon, 14 Oct 2019 08:18:04 +0000 (+0900) Subject: [UTC][wifi-manager][Non-ACR][Update pre-condition code to reduce the impact of enviro... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f933c968263677e8eee2973af93665bd1acfe43b;p=test%2Ftct%2Fnative%2Fapi.git [UTC][wifi-manager][Non-ACR][Update pre-condition code to reduce the impact of environmental problems] Change-Id: I279697729f14eb884d997e98b1881166fe6738ad Signed-off-by: Jaehyun Kim --- diff --git a/src/utc/wifi-manager/utc-wifi-manager-common.c b/src/utc/wifi-manager/utc-wifi-manager-common.c index 12cee8d46..377119ed0 100755 --- a/src/utc/wifi-manager/utc-wifi-manager-common.c +++ b/src/utc/wifi-manager/utc-wifi-manager-common.c @@ -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; } diff --git a/src/utc/wifi-manager/utc-wifi-manager-common.h b/src/utc/wifi-manager/utc-wifi-manager-common.h index c1decdcdb..05f9af21f 100755 --- a/src/utc/wifi-manager/utc-wifi-manager-common.h +++ b/src/utc/wifi-manager/utc-wifi-manager-common.h @@ -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"