Add support using PSK when connecting to hidden networks
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 15 Dec 2009 02:21:50 +0000 (18:21 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 15 Dec 2009 02:21:50 +0000 (18:21 -0800)
src/service.c

index ec1882f..2adeb86 100644 (file)
@@ -1849,9 +1849,10 @@ int __connman_service_create_and_connect(DBusMessage *msg)
                return -EINVAL;
 
        if (g_strcmp0(security, "none") != 0 &&
-                       g_strcmp0(security, "wep") != 0 &&
+                               g_strcmp0(security, "wep") != 0 &&
+                               g_strcmp0(security, "psk") != 0 &&
                                g_strcmp0(security, "wpa") != 0 &&
-                                       g_strcmp0(security, "rsn") != 0)
+                               g_strcmp0(security, "rsn") != 0)
                return -EINVAL;
 
        device = __connman_element_find_device(CONNMAN_SERVICE_TYPE_WIFI);