Fix auto connection failure 27/247727/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Thu, 15 Oct 2020 13:32:17 +0000 (22:32 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 16 Nov 2020 03:38:23 +0000 (12:38 +0900)
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>
src/service.c

index 6c4dbd1..7997a71 100755 (executable)
@@ -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