From 807ec513e73ab59b5066cf5ecb675b56cf9e59e3 Mon Sep 17 00:00:00 2001 From: "daniel.wagner@bmw-carit.de" Date: Mon, 20 Jun 2011 19:17:08 +0200 Subject: [PATCH] device: Do not return error for unhandled devices If device_probe returns an error for a device where no driver has been registered, the device will be destroyed. This happens when for example the wpa_supplicant is started after ConnMan. In this case we don't have any wifi device registered at the core when wpa_supplicant starts. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 067c794..3e3e96d 100644 --- a/src/device.c +++ b/src/device.c @@ -1199,7 +1199,7 @@ static int device_probe(struct connman_device *device) } if (device->driver == NULL) - return -ENODEV; + return 0; return setup_device(device); } -- 2.7.4