summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-07-07 16:49:09 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-07 16:53:48 +0200
commitb47073ad559febfcec83ff9e7a8ba7501545790e (patch)
treef1b28fde4d07b3c9755823efa57875d322de4d71 /src/device.c
parent31e6622f5581e26eb1c6ad27f1378059f23b2f89 (diff)
downloadconnman-b47073ad559febfcec83ff9e7a8ba7501545790e.tar.gz
connman-b47073ad559febfcec83ff9e7a8ba7501545790e.tar.bz2
connman-b47073ad559febfcec83ff9e7a8ba7501545790e.zip
device: Get service type from __connman_device_find_device
The device search is based on the service type, not on the device type. Fixes BMC#18747
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 6e521644..cb0e4cad 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1275,7 +1275,7 @@ struct connman_device *__connman_device_find_device(
for (list = device_list; list != NULL; list = list->next) {
struct connman_device *device = list->data;
enum connman_service_type service_type =
- connman_device_get_type(device);
+ __connman_device_get_service_type(device);
if (service_type != type)
continue;