summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2016-11-17 09:53:28 (GMT)
committerSaurav Babu <saurav.babu@samsung.com>2016-11-17 09:53:28 (GMT)
commit2d6b8a6c6adb5f948dd56c54bf3a81a863a46836 (patch)
tree8c925c2028091795614c53ae02980d354a075d0b
parent6f9fbb737fb0981d970209a68478ba6206c0d267 (diff)
downloadconnman-2d6b8a6c6adb5f948dd56c54bf3a81a863a46836.zip
connman-2d6b8a6c6adb5f948dd56c54bf3a81a863a46836.tar.gz
connman-2d6b8a6c6adb5f948dd56c54bf3a81a863a46836.tar.bz2
[connman] AutoConnect to old service when connection to new service failsrefs/changes/47/98447/1
In the following scenario: 1. Device is connected to AP1. 2. Connection requested initiated with AP2. AP1 gets disconnected and device initiates connection with AP2. If connection with AP2 fails(like invalid key, dhcp-failed error) then device should auto connect to AP1. This patch initiates auto connect to last connected AP's Change-Id: Iad5c4cf50da7a91869994abc133b24d66c99b0bc Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
-rwxr-xr-xsrc/service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 1eae380..1a9478b 100755
--- a/src/service.c
+++ b/src/service.c
@@ -6563,6 +6563,7 @@ static int service_indicate_state(struct connman_service *service)
#if defined TIZEN_EXT
if (service->type == CONNMAN_SERVICE_TYPE_WIFI)
service->order = 5;
+ __connman_service_auto_connect(CONNMAN_SERVICE_CONNECT_REASON_AUTO);
#endif
if (service->connect_reason == CONNMAN_SERVICE_CONNECT_REASON_USER &&
connman_agent_report_error(service, service->path,