From: Daniel Wagner Date: Wed, 21 Dec 2011 15:53:34 +0000 (+0100) Subject: ofono: Create ipconfig layer when creating network X-Git-Tag: 0.79~264 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45bdcd9edfe2699e0d2c8c274145a3a59cf4e138;p=platform%2Fupstream%2Fconnman.git 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. --- 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)