summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authordaniel.wagner@bmw-carit.de <daniel.wagner@bmw-carit.de>2011-06-20 19:17:08 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-06-21 10:51:01 +0200
commit807ec513e73ab59b5066cf5ecb675b56cf9e59e3 (patch)
tree8873ce120e6f98a3123fa05a0357b40f1d15223b /src/device.c
parentc8a9773d05c7874bf77196063bc6579f4880cad6 (diff)
downloadconnman-807ec513e73ab59b5066cf5ecb675b56cf9e59e3.tar.gz
connman-807ec513e73ab59b5066cf5ecb675b56cf9e59e3.tar.bz2
connman-807ec513e73ab59b5066cf5ecb675b56cf9e59e3.zip
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.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 067c7943..3e3e96dc 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);
}