From: Marcel Holtmann Date: Sun, 28 Dec 2008 06:40:50 +0000 (+0100) Subject: Set correct subtype for transition period X-Git-Tag: 0.6~99 X-Git-Url: http://git.maemo.org/git/?p=connman;a=commitdiff_plain;h=4c9720135427e44a128e80462acec3cf55eba31d Set correct subtype for transition period --- diff --git a/src/device.c b/src/device.c index ec453e9..590b955 100644 --- a/src/device.c +++ b/src/device.c @@ -538,6 +538,15 @@ struct connman_device *connman_device_create(const char *node, device->element.type = CONNMAN_ELEMENT_TYPE_DEVICE; device->element.index = -1; + switch (type) { + case CONNMAN_DEVICE_TYPE_ETHERNET: + device->element.subtype = CONNMAN_ELEMENT_SUBTYPE_ETHERNET; + break; + default: + device->element.subtype = CONNMAN_ELEMENT_SUBTYPE_UNKNOWN; + break; + } + device->element.device = device; device->element.destruct = device_destruct;