summaryrefslogtreecommitdiff
path: root/plugins/ethernet.c
diff options
context:
space:
mode:
authorGuillaume Lucas <guillaumex.lucas@intel.com>2011-02-04 08:04:07 +0000
committerSamuel Ortiz <sameo@linux.intel.com>2011-02-04 11:37:27 +0100
commitc7b5e97fba7357539253e1dff7c91033ed858294 (patch)
treece726038f0378046d479b8795efbeee33eaf314d /plugins/ethernet.c
parent483fb555c74ad7ee754c0292a9ecefff28e54cf8 (diff)
downloadconnman-c7b5e97fba7357539253e1dff7c91033ed858294.tar.gz
connman-c7b5e97fba7357539253e1dff7c91033ed858294.tar.bz2
connman-c7b5e97fba7357539253e1dff7c91033ed858294.zip
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().
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r--plugins/ethernet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 50442fcd..2ccd4989 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);
}
}