X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=plugins%2Fnetdev.c;h=3e085346efe4269f946e1906f09c2cb572c10a85;hb=ab0ef99eace3bff348b56cef74c62a1b1cfdaf72;hp=d8733b766a094e8bf6da494c6f83f0f91275f85a;hpb=8393bbf9b8c2704b68df7db9b326d7230b663476;p=connman diff --git a/plugins/netdev.c b/plugins/netdev.c index d8733b7..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); } @@ -77,5 +82,5 @@ static void netdev_exit(void) connman_driver_unregister(&netdev_driver); } -CONNMAN_PLUGIN_DEFINE("netdev", "Network device plugin", VERSION, +CONNMAN_PLUGIN_DEFINE(netdev, "Network device plugin", VERSION, netdev_init, netdev_exit)