From: Patrik Flykt <patrik.fl...@linux.intel.com> ---
With this change I seem to get the state changes in a correct order. Are there any particular steps where it does not work that I can test with? src/notifier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/notifier.c b/src/notifier.c index 55cea74..b328a2a 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -106,15 +106,15 @@ connman_bool_t __connman_notifier_is_connected(void) static const char *evaluate_notifier_state(void) { - if ( __connman_technology_get_offlinemode() == TRUE) - return "offline"; - if (notifier_is_online() == TRUE) return "online"; if (__connman_notifier_is_connected() == TRUE) return "ready"; + if ( __connman_technology_get_offlinemode() == TRUE) + return "offline"; + return "idle"; } -- 1.7.10 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman