summaryrefslogtreecommitdiff
path: root/plugins/ofono.c
diff options
context:
space:
mode:
authorBertrand Aygon <bertrand.aygon@intel.com>2011-07-28 12:14:23 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-28 17:43:44 +0200
commit6936f82c910e2f0af09588c0a52cb79e101207a0 (patch)
treea5f80eb98de1e4fc598c1725dfc6090abc7db0cc /plugins/ofono.c
parenta46753eb085547412f542abe804c0275cf46f27f (diff)
downloadconnman-6936f82c910e2f0af09588c0a52cb79e101207a0.tar.gz
connman-6936f82c910e2f0af09588c0a52cb79e101207a0.tar.bz2
connman-6936f82c910e2f0af09588c0a52cb79e101207a0.zip
ofono: Network name is empty when operator is not available
When the operator is not available and the network name is left to NULL, the service is built with the hidden flag set. The operator name will be updated whenever oFono passes it to ConnMan.
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r--plugins/ofono.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 1bd9a305..8650bfcd 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -889,6 +889,8 @@ static int add_network(struct connman_device *device,
if (modem->operator)
connman_network_set_name(network, modem->operator);
+ else
+ connman_network_set_name(network, "");
if (modem->has_strength)
connman_network_set_strength(network, modem->strength);