[PATCH] iwd: set network to connected if it is already

Ram Subramanian <[email protected]>
Newsgroups dev.linux.lists.connman
Message-ID <[email protected]>
Without this, connman will wait for a "Connected" signal from iwd, which
is only emitted when iwd connects to a network. If it is already
connected by the time create_network() is run, that network will be
stuck in limbo.
---
 plugins/iwd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/iwd.c b/plugins/iwd.c
index 1955140d..19229c10 100644
--- a/plugins/iwd.c
+++ b/plugins/iwd.c
@@ -1830,6 +1830,9 @@ static void create_network(GDBusProxy *proxy)
 			network_property_change, NULL);
 
 	add_network(path, iwdn);
+
+	if (iwdn->connected)
+		update_network_connected(iwdn);
 }
 
 static void known_network_property_change(GDBusProxy *proxy, const char *name,
-- 
2.43.2


-- 


*Confidentiality Note:* We care about protecting our proprietary 
information, confidential material, and trade secrets. This message may 
contain some or all of those things. Cruise will suffer material harm if 
anyone other than the intended recipient disseminates or takes any action 
based on this message. If you have received this message (including any 
attachments) in error, please delete it immediately and notify the sender 
promptly.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.