From: Guillaume Lucas Date: Fri, 4 Feb 2011 08:04:07 +0000 (+0000) Subject: ethernet: Create the bridge before to add an interface to it. X-Git-Tag: 2.0_alpha~1767 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7b5e97fba7357539253e1dff7c91033ed858294;p=framework%2Fconnectivity%2Fconnman.git ethernet: Create the bridge before to add an interface to it. The bridge is created by the connman_technology_tethering_notify() function. So this function must be called before to add an interface to the bridge. Means before the call to connman_inet_add_to_bridge(). --- diff --git a/plugins/ethernet.c b/plugins/ethernet.c index 50442fc..2ccd498 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -234,11 +234,11 @@ static void enable_tethering(struct connman_technology *technology, for (list = cdc_interface_list; list; list = list->next) { int index = GPOINTER_TO_INT(list->data); + connman_technology_tethering_notify(technology, TRUE); + connman_inet_ifup(index); connman_inet_add_to_bridge(index, bridge); - - connman_technology_tethering_notify(technology, TRUE); } }