From: Samuel Ortiz Date: Mon, 21 Feb 2011 20:32:54 +0000 (+0100) Subject: wifi: Remove interfaces from the bridge when disabling tethering X-Git-Tag: 2.0_alpha~1706 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d0741d72b6024f5094882adfdb4a0c5e4866d8c;p=framework%2Fconnectivity%2Fconnman.git wifi: Remove interfaces from the bridge when disabling tethering --- 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);