projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e51a0
)
Add missing check for WiFi security modes
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 29 Jul 2009 11:45:37 +0000
(13:45 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 29 Jul 2009 11:45:37 +0000
(13:45 +0200)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
315a512
..
d688dd1
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-1294,6
+1294,12
@@
int __connman_service_create_and_connect(DBusMessage *msg)
if (ssid_len < 1)
return -EINVAL;
+ if (g_strcmp0(security, "none") != 0 &&
+ g_strcmp0(mode, "wep") != 0 &&
+ g_strcmp0(mode, "wpa") != 0 &&
+ g_strcmp0(mode, "rsn") != 0)
+ return -EINVAL;
+
device = __connman_element_find_device(CONNMAN_SERVICE_TYPE_WIFI);
if (device == NULL)
return -EOPNOTSUPP;