ofono: Fix no ip settings for CDMA network
authorYu A Wang <arron.wang@intel.com>
Thu, 5 Jan 2012 06:52:26 +0000 (01:52 -0500)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 5 Jan 2012 10:52:48 +0000 (11:52 +0100)
When we add cdma network, we alloc the context for the modem, due
to add_network logic needs, then we need extract ip settings even
context is not NULL

plugins/ofono.c

index e8d708c..302dbb2 100644 (file)
@@ -1671,9 +1671,6 @@ static void cdma_cm_update_settings(struct modem_data *modem,
 {
        DBG("%s Settings", modem->path);
 
-       if (modem->context != NULL)
-               return;
-
        extract_ipv4_settings(value, modem->context);
 }