connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] iwd: Fix improper IPv4/6 attributes when disconnecting
@ 2021-10-01 12:17 VAUTRIN Emmanuel (Canal Plus Prestataire)
  2021-10-04  6:34 ` Daniel Wagner
  0 siblings, 1 reply; 2+ messages in thread
From: VAUTRIN Emmanuel (Canal Plus Prestataire) @ 2021-10-01 12:17 UTC (permalink / raw)
  To: connman

The Method, Address, Netmask and Gateway attributes of IPv4/6 Service
property were not flushed at network disconnection, because its
associating state was not reset.
---
 plugins/iwd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/iwd.c b/plugins/iwd.c
index 9f2114f47311..c1c273ef4b3a 100644
--- a/plugins/iwd.c
+++ b/plugins/iwd.c
@@ -311,6 +311,8 @@ static int cm_network_disconnect(struct connman_network *network)
 	if (!iwds)
 		return -EIO;
 
+	connman_network_set_associating(network, false);
+
 	if (!g_dbus_proxy_method_call(iwds->proxy, "Disconnect",
 			NULL, cm_network_disconnect_cb, g_strdup(iwdn->path), g_free))
 		return -EIO;
-- 
2.25.1


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

* Re: [PATCH] iwd: Fix improper IPv4/6 attributes when disconnecting
  2021-10-01 12:17 [PATCH] iwd: Fix improper IPv4/6 attributes when disconnecting VAUTRIN Emmanuel (Canal Plus Prestataire)
@ 2021-10-04  6:34 ` Daniel Wagner
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Wagner @ 2021-10-04  6:34 UTC (permalink / raw)
  To: connman, VAUTRIN Emmanuel (Canal Plus Prestataire); +Cc: Daniel Wagner

On Fri, 1 Oct 2021 12:17:20 +0000, VAUTRIN Emmanuel (Canal Plus Prestataire) wrote:
> The Method, Address, Netmask and Gateway attributes of IPv4/6 Service
> property were not flushed at network disconnection, because its
> associating state was not reset.
> 

Applied, thanks!

[1/1] iwd: Fix improper IPv4/6 attributes when disconnecting
      commit: ea8a6b45cc489c59a08950eae86a09e1db02e316

Best regards,
-- 
Daniel Wagner <wagi@monom.org>

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01 12:17 [PATCH] iwd: Fix improper IPv4/6 attributes when disconnecting VAUTRIN Emmanuel (Canal Plus Prestataire)
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).