From: Marcel Holtmann Date: Sun, 14 Dec 2008 23:55:10 +0000 (+0100) Subject: Fix wrong subtype assignment within network devices X-Git-Tag: 0.4~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab0ef99eace3bff348b56cef74c62a1b1cfdaf72;p=platform%2Fupstream%2Fconnman.git Fix wrong subtype assignment within network devices --- diff --git a/plugins/netdev.c b/plugins/netdev.c index 226d633..3e08534 100644 --- a/plugins/netdev.c +++ b/plugins/netdev.c @@ -41,6 +41,11 @@ static void create_element(struct connman_element *parent, element->type = type; element->index = parent->index; + if (parent->parent) + element->subtype = parent->parent->subtype; + else + element->subtype = CONNMAN_ELEMENT_SUBTYPE_UNKNOWN; + connman_element_register(element, parent); }