From: Mohamed Abbas <mohamed.ab...@intel.com>

Calling location detection after the DNS and routing table is set.
---
 include/location.h |    3 +++
 src/service.c      |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/include/location.h b/include/location.h
index a0b01d6..c4ba2e5 100644
--- a/include/location.h
+++ b/include/location.h
@@ -28,6 +28,9 @@
 extern "C" {
 #endif
 
+#define CONNMAN_LOCATION_PRIORITY_LOW          -100
+#define CONNMAN_LOCATION_PRIORITY_DEFAULT      0
+#define CONNMAN_LOCATION_PRIORITY_HIGH         100
 /**
  * SECTION:location
  * @title: Location premitives
diff --git a/src/service.c b/src/service.c
index 3b5cb9d..26bae82 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1583,7 +1583,6 @@ int __connman_service_indicate_state(struct 
connman_service *service,
 
                default_changed();
 
-               __connman_location_detect(service);
        } else if (state == CONNMAN_SERVICE_STATE_DISCONNECT) {
                __connman_location_finish(service);
 
@@ -1635,6 +1634,7 @@ int __connman_service_indicate_default(struct 
connman_service *service)
        DBG("service %p", service);
 
        default_changed();
+       __connman_location_detect(service);
 
        return 0;
 }
-- 
1.6.2.5

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to