enum connman_device_type type)
{
struct connman_device *device;
+ const char *str;
DBG("node %s type %d", node, type);
device->element.device = device;
device->element.destruct = device_destruct;
+ str = type2string(type);
+ if (str != NULL)
+ connman_element_add_static_property(&device->element,
+ "Type", DBUS_TYPE_STRING, &str);
+
device->type = type;
device->mode = CONNMAN_DEVICE_MODE_UNKNOWN;
device->policy = CONNMAN_DEVICE_POLICY_AUTO;