From: Samuel Ortiz Date: Sat, 19 Dec 2009 00:42:29 +0000 (+0100) Subject: Ask for DEVICE_TYPE_WIFI when looking for a WiFi device X-Git-Tag: 0.48~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ebe1d8103b4076cdf5e4a19ec41ae23019eecfa;p=platform%2Fupstream%2Fconnman.git 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. --- diff --git a/src/service.c b/src/service.c index 2adeb86..e359cf4 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;