Skip to contentSkip to conversation

iwd: set network to connected if it is already

PATCH Applied Ram Subramanian 2 participants 2 messages Apr 18, 2024 – Apr 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iwd: set network to connected if it is already

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(+)
plugins/iwd.c +3 -0
index 1955140d..19229c10 100644
@@ -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,
Signature · 13 lines
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.
#1 lore raw
This patch was applied to connman.git (master) by Denis Kenzior <[email protected]>:

Hello:

This patch was applied to connman.git (master)
by Denis Kenzior <[email protected]>:

Quoted 7 lines · On Thu, 18 Apr 2024 13:11:51 -0700 you wrote:

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(+)

Here is the summary with links:
- iwd: set network to connected if it is already

    https://git.kernel.org/pub/scm/network/connman/connman.git/?id=be1767db744b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html