Send connman mailing list submissions to
        connman@lists.01.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        connman-requ...@lists.01.org

You can reach the person managing the list at
        connman-ow...@lists.01.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. RE: Need help - Autoreconnect does not happen ! (Kandiga, Harish)
   2. [PATCH] service: Rename autoconnect_timeout and
      vpn_autoconnect_timeout (Harish Jenny K N)


----------------------------------------------------------------------

Message: 1
Date: Thu, 11 Jan 2018 08:42:00 +0000
From: "Kandiga, Harish" <harish_kand...@mentor.com>
To: "connman@lists.01.org" <connman@lists.01.org>
Subject: RE: Need help - Autoreconnect does not happen !
Message-ID:
        <aff9190b554d4540a228862fc71de...@svr-ies-mbx-01.mgc.mentorg.com>
Content-Type: text/plain; charset="us-ascii"

Hello,


Any inputs for how to handle this scenario?


> 1. Create Mobile hotspot and connect to the Access Point (AP).
> 2. Deactivate the Hotspot on your phone
> 3. Immediately activate the Hotspot on your phone 4. It will Not  get auto 
> connected to the AP ( need to perform "config <service> --remove" and then 
> "connect <service> "again)
Sorry for mentioning "config <service> --remove" here. 
Manual connect works. But only auto-connect does not work.


Regards,
Harish


------------------------------

Message: 2
Date: Thu, 11 Jan 2018 16:41:11 +0530
From: Harish Jenny K N <harish_kand...@mentor.com>
To: <conn...@connman.net>
Subject: [PATCH] service: Rename autoconnect_timeout and
        vpn_autoconnect_timeout
Message-ID:
        <1515669071-5674-1-git-send-email-harish_kand...@mentor.com>
Content-Type: text/plain

This commits renames autoconnect_timeout and vpn_autoconnect_timeout
global variable to avoid misinterpretation as timeout.

---
 src/service.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/service.c b/src/service.c
index e72b6f3..9381ee1 100644
--- a/src/service.c
+++ b/src/service.c
@@ -44,8 +44,8 @@ static DBusConnection *connection = NULL;
 static GList *service_list = NULL;
 static GHashTable *service_hash = NULL;
 static GSList *counter_list = NULL;
-static unsigned int autoconnect_timeout = 0;
-static unsigned int vpn_autoconnect_timeout = 0;
+static unsigned int autoconnect_id = 0;
+static unsigned int vpn_autoconnect_id = 0;
 static struct connman_service *current_default = NULL;
 static bool services_dirty = false;
 
@@ -4062,7 +4062,7 @@ static gboolean run_auto_connect(gpointer data)
        bool autoconnecting = false;
        GList *preferred_tech;
 
-       autoconnect_timeout = 0;
+       autoconnect_id = 0;
 
        DBG("");
 
@@ -4083,13 +4083,13 @@ void __connman_service_auto_connect(enum 
connman_service_connect_reason reason)
 {
        DBG("");
 
-       if (autoconnect_timeout != 0)
+       if (autoconnect_id != 0)
                return;
 
        if (!__connman_session_policy_autoconnect(reason))
                return;
 
-       autoconnect_timeout = g_idle_add(run_auto_connect,
+       autoconnect_id = g_idle_add(run_auto_connect,
                                                GUINT_TO_POINTER(reason));
 }
 
@@ -4097,7 +4097,7 @@ static gboolean run_vpn_auto_connect(gpointer data) {
        GList *list;
        bool need_split = false;
 
-       vpn_autoconnect_timeout = 0;
+       vpn_autoconnect_id = 0;
 
        for (list = service_list; list; list = list->next) {
                struct connman_service *service = list->data;
@@ -4139,10 +4139,10 @@ static gboolean run_vpn_auto_connect(gpointer data) {
 
 static void vpn_auto_connect(void)
 {
-       if (vpn_autoconnect_timeout)
+       if (vpn_autoconnect_id)
                return;
 
-       vpn_autoconnect_timeout =
+       vpn_autoconnect_id =
                g_idle_add(run_vpn_auto_connect, NULL);
 }
 
@@ -7436,14 +7436,14 @@ void __connman_service_cleanup(void)
 {
        DBG("");
 
-       if (vpn_autoconnect_timeout) {
-               g_source_remove(vpn_autoconnect_timeout);
-               vpn_autoconnect_timeout = 0;
+       if (vpn_autoconnect_id) {
+               g_source_remove(vpn_autoconnect_id);
+               vpn_autoconnect_id = 0;
        }
 
-       if (autoconnect_timeout != 0) {
-               g_source_remove(autoconnect_timeout);
-               autoconnect_timeout = 0;
+       if (autoconnect_id != 0) {
+               g_source_remove(autoconnect_id);
+               autoconnect_id = 0;
        }
 
        connman_agent_driver_unregister(&agent_driver);
-- 
1.9.1




------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
connman@lists.01.org
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 27, Issue 5
**************************************

Reply via email to