Change-Id: I279697729f14eb884d997e98b1881166fe6738ad
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
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;
}
#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"