diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2009-12-19 01:42:29 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-18 17:04:37 -0800 |
commit | 7ebe1d8103b4076cdf5e4a19ec41ae23019eecfa (patch) | |
tree | 7b92c51f8eb907171ce4671b3e110e6588922b3c /src | |
parent | 24a43004a9391e9e1576e209349d2b2a3815a854 (diff) | |
download | connman-7ebe1d8103b4076cdf5e4a19ec41ae23019eecfa.tar.gz connman-7ebe1d8103b4076cdf5e4a19ec41ae23019eecfa.tar.bz2 connman-7ebe1d8103b4076cdf5e4a19ec41ae23019eecfa.zip |
Ask for DEVICE_TYPE_WIFI when looking for a WiFi device
The __connman_element_find_device(CONNMAN_SERVICE_TYPE_WIFI) was working
fine while SERVICE_TYPE_WIFI and DEVICE_TYPE_WIFI were equal. With the
introduction of CONNMAN_SERVICE_TYPE_SYSTEM, this last assertion is no
longer true, breaking the service API for connection.
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 2adeb860..e359cf47 100644 --- a/src/service.c +++ b/src/service.c @@ -1855,7 +1855,7 @@ int __connman_service_create_and_connect(DBusMessage *msg) g_strcmp0(security, "rsn") != 0) return -EINVAL; - device = __connman_element_find_device(CONNMAN_SERVICE_TYPE_WIFI); + device = __connman_element_find_device(CONNMAN_DEVICE_TYPE_WIFI); if (device == NULL) return -EOPNOTSUPP; |