ofono: Network name is empty when operator is not available
authorBertrand Aygon <bertrand.aygon@intel.com>
Thu, 28 Jul 2011 10:14:23 +0000 (12:14 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Jul 2011 15:43:44 +0000 (17:43 +0200)
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.

plugins/ofono.c

index 1bd9a30..8650bfc 100644 (file)
@@ -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);