From 45bdcd9edfe2699e0d2c8c274145a3a59cf4e138 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 21 Dec 2011 16:53:34 +0100 Subject: [PATCH] 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. --- plugins/ofono.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/ofono.c b/plugins/ofono.c index 4906dc5..4a6467b 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) -- 2.7.4