From: Saurav Babu Date: Thu, 17 Nov 2016 09:53:28 +0000 (+0530) Subject: [connman] AutoConnect to old service when connection to new service fails X-Git-Tag: accepted/tizen/common/20161208.135628~5 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fconnman.git;a=commitdiff_plain;h=2d6b8a6c6adb5f948dd56c54bf3a81a863a46836 [connman] AutoConnect to old service when connection to new service fails 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 --- 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,