From c7b5e97fba7357539253e1dff7c91033ed858294 Mon Sep 17 00:00:00 2001 From: Guillaume Lucas Date: Fri, 4 Feb 2011 08:04:07 +0000 Subject: [PATCH] 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(). --- plugins/ethernet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.7.4