From: Marcel Holtmann Date: Sun, 28 Dec 2008 06:40:50 +0000 (+0100) Subject: Set correct subtype for transition period X-Git-Tag: 2.0_alpha~4293 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c9720135427e44a128e80462acec3cf55eba31d;p=framework%2Fconnectivity%2Fconnman.git 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;