From: Marcel Holtmann Date: Thu, 18 Dec 2008 03:26:09 +0000 (+0100) Subject: Only allow WiFi devices to create networks for now X-Git-Tag: 0.5~1 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=76fc6c0e0c2ad9890a5cfde7b503b11276f64a95;p=connman Only allow WiFi devices to create networks for now --- diff --git a/src/element.c b/src/element.c index 6c07046..1145053 100644 --- a/src/element.c +++ b/src/element.c @@ -637,6 +637,9 @@ static DBusMessage *device_create_network(DBusConnection *conn, DBG("conn %p", conn); + if (element->subtype != CONNMAN_ELEMENT_SUBTYPE_WIFI) + return __connman_error_invalid_arguments(msg); + if (dbus_message_iter_init(msg, &iter) == FALSE) return __connman_error_invalid_arguments(msg);