diff options
author | VAUTRIN Emmanuel (Canal Plus Prestataire) <Emmanuel.VAUTRIN@cpexterne.org> | 2021-10-01 12:17:20 +0000 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2021-10-04 08:19:30 +0200 |
commit | ea8a6b45cc489c59a08950eae86a09e1db02e316 (patch) | |
tree | ad749dcaa2da57a215f297ff888dab20407e65f9 /plugins | |
parent | dd7d4be53b9a6ca58cf8880d605fb5711ba5325b (diff) | |
download | connman-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.c | 2 |
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; |