projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
569e0e8
)
service: Don't trigger autoconnect when neither service is preferred
author
Patrik Flykt
<patrik.flykt@linux.intel.com>
Wed, 17 Oct 2012 10:34:20 +0000
(13:34 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Thu, 18 Oct 2012 10:26:37 +0000
(13:26 +0300)
Don't trigger a new autoconnect when neither the default nor the new
service is preferred. Rely on the fact that normal autoconnect selection
mechanism has done the work for us already.
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
3417e89
..
5dee4cd
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-4941,7
+4941,6
@@
static int service_update_preferred_order(struct connman_service *default_servic
return 0;
}
}
- return -EAGAIN;
}
return -EALREADY;
@@
-4977,8
+4976,6
@@
static int service_indicate_state(struct connman_service *service)
service, new_state);
if (result == -EALREADY)
return result;
- if (result == -EAGAIN)
- __connman_service_auto_connect();
}
if (old_state == CONNMAN_SERVICE_STATE_ONLINE)