diff options
author | Jaehyun Kim <jeik01.kim@samsung.com> | 2020-10-15 13:32:17 (GMT) |
---|---|---|
committer | Jaehyun Kim <jeik01.kim@samsung.com> | 2020-12-17 03:30:46 (GMT) |
commit | 9c1f8b781a23baa8e31c247fb3ac9fe6baad4829 (patch) | |
tree | 5b98adc6a8fd9528e6cc7309a964807471c5721b | |
parent | 72d6b309ae91ca2b29f2f239046342c664165f79 (diff) | |
download | connman-tizen_6.0_hotfix.zip connman-tizen_6.0_hotfix.tar.gz connman-tizen_6.0_hotfix.tar.bz2 |
Fix auto connection failuresubmit/tizen_6.0_hotfix/20201217.061918accepted/tizen/6.0/unified/hotfix/20201218.015407tizen_6.0_hotfixaccepted/tizen_6.0_unified_hotfixrefs/changes/24/249824/1
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-x | src/service.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 6c4dbd1..7997a71 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 |