projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7118717
)
Only allow WiFi devices to create networks for now
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 18 Dec 2008 03:26:09 +0000
(
04:26
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 18 Dec 2008 03:26:09 +0000
(
04:26
+0100)
src/element.c
patch
|
blob
|
history
diff --git
a/src/element.c
b/src/element.c
index
6c07046
..
1145053
100644
(file)
--- 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);