summaryrefslogtreecommitdiff
path: root/plugins/ofono.c
diff options
context:
space:
mode:
authorYu A Wang <arron.wang@intel.com>2012-01-05 01:52:34 -0500
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-05 11:52:48 +0100
commitb5279a24602a3f259e3188f95aa9d31d54997ba0 (patch)
tree32633192f4f1dd76a2ecc05ae65b1bd01fdebb53 /plugins/ofono.c
parent5808f7e1d74604b96342a0172ac78eddbafbb54a (diff)
downloadconnman-b5279a24602a3f259e3188f95aa9d31d54997ba0.tar.gz
connman-b5279a24602a3f259e3188f95aa9d31d54997ba0.tar.bz2
connman-b5279a24602a3f259e3188f95aa9d31d54997ba0.zip
ofono: Fix network name is null for CDMA network
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r--plugins/ofono.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 302dbb21..b15ad03e 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -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)