Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe 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. [PATCH] iwd: synchronize station scanning property with connman device
(Maxime Roussin-Bélanger)
----------------------------------------------------------------------
Date: Thu, 12 Mar 2020 17:04:38 -0400
From: Maxime Roussin-Bélanger <[email protected]>
Subject: [PATCH] iwd: synchronize station scanning property with
connman device
To: [email protected]
Cc: [email protected], Maxime Roussin-Bélanger
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
When you start a scan connman waits for a scan_pending
reply, but IWD never sends a reply.
By synchronizing the scanning property of a iwd station with
connman device, it can call the
__connman_technology_scan_stopped function so that the
scan_pending is removed from the list.
Signed-off-by: Maxime Roussin-Bélanger <[email protected]>
---
plugins/iwd.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/iwd.c b/plugins/iwd.c
index bf6a2c26..ad5adace 100644
--- a/plugins/iwd.c
+++ b/plugins/iwd.c
@@ -1020,6 +1020,7 @@ static void station_property_change(GDBusProxy *proxy,
const char *name,
DBusMessageIter *iter, void *user_data)
{
struct iwd_station *iwds;
+ struct iwd_device *iwdd;
const char *path;
path = g_dbus_proxy_get_path(proxy);
@@ -1056,6 +1057,11 @@ static void station_property_change(GDBusProxy *proxy,
const char *name,
if (!iwds->scanning)
update_signal_strength(iwds);
+ iwdd = g_hash_table_lookup(devices, path);
+ if (iwdd)
+ connman_device_set_scanning(iwdd->device,
+ CONNMAN_SERVICE_TYPE_WIFI,
iwds->scanning);
+
DBG("%s scanning %d", path, iwds->scanning);
}
}
--
2.20.1
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]
------------------------------
End of connman Digest, Vol 53, Issue 12
***************************************