Send connman mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: RE: Need help - Autoreconnect does not happen !
Message-ID:
<[email protected]>
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 <[email protected]>
To: <[email protected]>
Subject: [PATCH] service: Rename autoconnect_timeout and
vpn_autoconnect_timeout
Message-ID:
<[email protected]>
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
[email protected]
https://lists.01.org/mailman/listinfo/connman
------------------------------
End of connman Digest, Vol 27, Issue 5
**************************************