From c811703b87852609bbb1922cc0a3c7f9669c9179 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 19 Mar 2012 13:50:37 +0100 Subject: [PATCH] service: Enable AutoConnect for new ethernet services We need also to set the Favorite flag to true in order to let the services to be auto connected. --- src/service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index becbe53..529a1a0 100644 --- a/src/service.c +++ b/src/service.c @@ -5341,7 +5341,6 @@ struct connman_service * __connman_service_create_from_network(struct connman_ne switch (service->type) { case CONNMAN_SERVICE_TYPE_UNKNOWN: case CONNMAN_SERVICE_TYPE_SYSTEM: - case CONNMAN_SERVICE_TYPE_ETHERNET: case CONNMAN_SERVICE_TYPE_WIMAX: case CONNMAN_SERVICE_TYPE_BLUETOOTH: case CONNMAN_SERVICE_TYPE_GPS: @@ -5349,6 +5348,8 @@ struct connman_service * __connman_service_create_from_network(struct connman_ne case CONNMAN_SERVICE_TYPE_GADGET: service->autoconnect = FALSE; break; + case CONNMAN_SERVICE_TYPE_ETHERNET: + service->favorite = TRUE; case CONNMAN_SERVICE_TYPE_WIFI: case CONNMAN_SERVICE_TYPE_CELLULAR: service->autoconnect = TRUE; -- 2.7.4