connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] iwd: Fix timeout error on new connection
@ 2021-10-01 12:18 VAUTRIN Emmanuel (Canal Plus Prestataire)
  2021-10-01 13:29 ` Michael Nazzareno Trimarchi
  2021-10-04  6:34 ` Daniel Wagner
  0 siblings, 2 replies; 3+ messages in thread
From: VAUTRIN Emmanuel (Canal Plus Prestataire) @ 2021-10-01 12:18 UTC (permalink / raw)
  To: connman

Before connecting to a new network, the currenty connected one shall be
disconnected, what always failed with "Operation timeout" error, as
the disconnection seemed not completed, cm_network_disconnect
returning -EINPROGRESS on success.
---
 plugins/iwd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/iwd.c b/plugins/iwd.c
index c1c273ef4b3a..ec9a4574cf2d 100644
--- a/plugins/iwd.c
+++ b/plugins/iwd.c
@@ -317,7 +317,7 @@ static int cm_network_disconnect(struct connman_network *network)
 			NULL, cm_network_disconnect_cb, g_strdup(iwdn->path), g_free))
 		return -EIO;
 
-	return -EINPROGRESS;
+	return 0;
 }
 
 struct auto_connect_cb_data {
-- 
2.25.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-04  6:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01 12:18 [PATCH] iwd: Fix timeout error on new connection VAUTRIN Emmanuel (Canal Plus Prestataire)
2021-10-01 13:29 ` Michael Nazzareno Trimarchi
2021-10-04  6:34 ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).