technology: Return technology name Cellular instead 3G
[framework/connectivity/connman.git] / src / technology.c
index cfa7972..de0fab8 100644 (file)
@@ -309,7 +309,7 @@ static const char *get_name(enum connman_service_type type)
        case CONNMAN_SERVICE_TYPE_BLUETOOTH:
                return "Bluetooth";
        case CONNMAN_SERVICE_TYPE_CELLULAR:
-               return "3G";
+               return "Cellular";
        }
 
        return NULL;
@@ -881,7 +881,8 @@ int __connman_technology_enable(enum connman_service_type type, DBusMessage *msg
 
 done:
        if (ret == 0) {
-               g_dbus_send_reply(connection, msg, DBUS_TYPE_INVALID);
+               if (msg != NULL)
+                       g_dbus_send_reply(connection, msg, DBUS_TYPE_INVALID);
                return ret;
        }
 
@@ -967,7 +968,8 @@ int __connman_technology_disable(enum connman_service_type type, DBusMessage *ms
 
 done:
        if (ret == 0) {
-               g_dbus_send_reply(connection, msg, DBUS_TYPE_INVALID);
+               if (msg != NULL)
+                       g_dbus_send_reply(connection, msg, DBUS_TYPE_INVALID);
                return ret;
        }