Ignore network devices in generic driver
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Dec 2008 07:28:51 +0000 (08:28 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Dec 2008 07:28:51 +0000 (08:28 +0100)
src/device.c

index f49c5e7..b70b95f 100644 (file)
@@ -46,6 +46,9 @@ static int device_probe(struct connman_element *element)
 
        DBG("element %p name %s", element, element->name);
 
+       if (element->subtype == CONNMAN_ELEMENT_SUBTYPE_NETWORK)
+               return -ENODEV;
+
        device = g_try_new0(struct connman_device, 1);
        if (device == NULL)
                return -ENOMEM;