wifi: Remove interfaces from the bridge when disabling tethering
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 21 Feb 2011 20:32:54 +0000 (21:32 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 21 Feb 2011 20:32:54 +0000 (21:32 +0100)
plugins/wifi.c

index 78da6ac..b943a25 100644 (file)
@@ -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);