summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wifi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 78da6ac4..b943a258 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1007,8 +1007,12 @@ static int tech_set_tethering(struct connman_technology *technology,
for (list = iface_list; list; list = list->next) {
wifi = list->data;
- if (wifi->tethering == TRUE)
+ if (wifi->tethering == TRUE) {
wifi->tethering = FALSE;
+
+ connman_inet_remove_from_bridge(wifi->index,
+ bridge);
+ }
}
connman_technology_tethering_notify(technology, FALSE);