[PATCH] service: Clear WiFi.UseWPS when connection is failed

Danny Jeongseok Seo s.seo at samsung.com
Fri Jan 27 03:52:06 PST 2012


From: Danny Jeongseok Seo <s.seo at samsung.com>


Subject: [PATCH] service: Clear WiFi.UseWPS when connection is failed
---
 src/service.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/service.c b/src/service.c index 109c8b6..0b61448 100644
--- a/src/service.c
+++ b/src/service.c
@@ -4006,6 +4006,12 @@ static int service_indicate_state(struct
connman_service *service)
 	if (new_state == CONNMAN_SERVICE_STATE_IDLE) {
 		connman_bool_t reconnect;
 
+		if (service->type == CONNMAN_SERVICE_TYPE_WIFI &&
+			connman_network_get_bool(service->network,
+				"WiFi.UseWPS") == TRUE)
+			connman_network_set_bool(service->network,
+			"WiFi.UseWPS", FALSE);
+
 		reconnect = get_reconnect_state(service);
 		if (reconnect == TRUE)
 			__connman_service_auto_connect();
--
1.7.5.4




More information about the connman mailing list