ofono: Fix network name is null for CDMA network
authorYu A Wang <arron.wang@intel.com>
Thu, 5 Jan 2012 06:52:34 +0000 (01:52 -0500)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 5 Jan 2012 10:52:48 +0000 (11:52 +0100)
plugins/ofono.c

index 302dbb2..b15ad03 100644 (file)
@@ -1505,6 +1505,9 @@ static void add_cdma_network(struct modem_data *modem)
        if (modem->context == NULL)
                modem->context = network_context_alloc(modem->path);
 
+       if (modem->name == NULL)
+               modem->name = g_strdup("CDMA Network");
+
        add_network(modem);
 
        if (modem->cdma_cm_powered == TRUE)