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.
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;