diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-22 08:28:51 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-22 08:28:51 +0100 |
commit | b32471b21a6d8583db0329b9f2c788e8611822e0 (patch) | |
tree | ceb2ec838d68d8d7f8ad9a185d8ee468f231760b /src | |
parent | b62fdd5b4c9ce7ea5f9ff4280bc1433982ec37be (diff) | |
download | connman-b32471b21a6d8583db0329b9f2c788e8611822e0.tar.gz connman-b32471b21a6d8583db0329b9f2c788e8611822e0.tar.bz2 connman-b32471b21a6d8583db0329b9f2c788e8611822e0.zip |
Ignore network devices in generic driver
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index f49c5e77..b70b95f8 100644 --- a/src/device.c +++ b/src/device.c @@ -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; |