summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorVAUTRIN Emmanuel (Canal Plus Prestataire) <Emmanuel.VAUTRIN@cpexterne.org>2021-10-01 12:17:20 +0000
committerDaniel Wagner <wagi@monom.org>2021-10-04 08:19:30 +0200
commitea8a6b45cc489c59a08950eae86a09e1db02e316 (patch)
treead749dcaa2da57a215f297ff888dab20407e65f9 /plugins
parentdd7d4be53b9a6ca58cf8880d605fb5711ba5325b (diff)
downloadconnman-ea8a6b45cc489c59a08950eae86a09e1db02e316.tar.gz
iwd: Fix improper IPv4/6 attributes when disconnecting
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/iwd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/iwd.c b/plugins/iwd.c
index 9f2114f4..c1c273ef 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;