summaryrefslogtreecommitdiff
path: root/plugins/ofono.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-12-21 16:53:34 +0100
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-12-22 11:10:15 +0100
commit45bdcd9edfe2699e0d2c8c274145a3a59cf4e138 (patch)
treed233065149b098f12529941810d808768eeea66f /plugins/ofono.c
parentc3f318213eaa21eaaa86b02661a520a5af8eee18 (diff)
downloadconnman-45bdcd9edfe2699e0d2c8c274145a3a59cf4e138.tar.gz
connman-45bdcd9edfe2699e0d2c8c274145a3a59cf4e138.tar.bz2
connman-45bdcd9edfe2699e0d2c8c274145a3a59cf4e138.zip
ofono: Create ipconfig layer when creating network
Create the ipconfig layer before trying to connect. Withouth the ipconfig layer the core is not ready to process errors.
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r--plugins/ofono.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 4906dc5b..4a6467bb 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -998,6 +998,12 @@ static void add_network(struct modem_data *modem)
modem->network = NULL;
return;
}
+
+ /*
+ * Create the ipconfig layer before trying to connect. Withouth
+ * the ipconfig layer the core is not ready to process errors.
+ */
+ connman_network_set_index(modem->network, -1);
}
static void remove_network(struct modem_data *modem)