From d41bcd7e940b53e163ebc51a611c48791cb99b15 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 14 Dec 2009 18:21:50 -0800 Subject: [PATCH] Add support using PSK when connecting to hidden networks --- src/service.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service.c b/src/service.c index ec1882f..2adeb86 100644 --- a/src/service.c +++ b/src/service.c @@ -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); -- 2.7.4