service: Update ordering regarding connected preferred service
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 5 Apr 2012 19:38:45 +0000 (22:38 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 11 Apr 2012 12:26:24 +0000 (15:26 +0300)
commitd11deb8ad35d76e8531968e0eda749bab765cd59
treed51ab0671e2d7d4903bafe65620d29570bdff9ee
parent2f03c0fb45f3e2f51c028a671d74e9fa9c90101a
service: Update ordering regarding connected preferred service

When a new service goes online, run the service ordering check.
If the return value is -EAGAIN, neither service was preferred
and a new autoconnection attempt is done to find a preferred
service.

When a new service goes to ready state, run the service
ordering check similarly as with the online state. Since online
check will be run next, only re-attempt autoconnection when the
online check is known to have failed and the service will
stay at ready state.
src/service.c