summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2020-10-15 22:32:17 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2020-10-15 22:32:17 +0900
commitb2c0ac0bd56e8070a05b7a7328fd611536c8794a (patch)
treecb6e976b9689a1149f491da62bda18d017d61a68
parent4e1d941e94590b2a41996b477f2563a9c860e1e5 (diff)
downloadconnman-b2c0ac0bd56e8070a05b7a7328fd611536c8794a.tar.gz
connman-b2c0ac0bd56e8070a05b7a7328fd611536c8794a.tar.bz2
connman-b2c0ac0bd56e8070a05b7a7328fd611536c8794a.zip
Fix auto connection failure
If there is more than one connection history, auto-connection is failing. This problem occurs because two APs try to connect to the same interface at the same time. So fixed to prevent duplicate connection attempts on the same interface. Change-Id: If5da80db089c9607579f943d023565c999a5576b Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-xsrc/service.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 90ff7e5e..e6cc61c6 100755
--- a/src/service.c
+++ b/src/service.c
@@ -6473,6 +6473,13 @@ static bool auto_connect_service(GList *services,
if (autoconnect_no_session_active(service))
return true;
#endif
+#if defined TIZEN_EXT
+ if (service->type == CONNMAN_SERVICE_TYPE_WIFI) {
+ int index = connman_network_get_index(service->network);
+ wifi_ignore = g_slist_prepend(wifi_ignore, GINT_TO_POINTER(index));
+ autoconnecting = true;
+ }
+#endif
ignore[service->type] = true;
}
#if defined TIZEN_EXT