From 5d0741d72b6024f5094882adfdb4a0c5e4866d8c Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Mon, 21 Feb 2011 21:32:54 +0100 Subject: [PATCH] wifi: Remove interfaces from the bridge when disabling tethering --- plugins/wifi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 78da6ac..b943a25 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); -- 2.7.4