From 3c33469caa49f982234d55b3f43efa2dbfdc02d3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 14 Dec 2009 18:24:56 -0800 Subject: [PATCH] Fix supplicant connection issue when specifying PSK security --- plugins/supplicant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 2ef95fe..a0daa59 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -790,7 +790,8 @@ static int set_network(struct supplicant_task *task, connman_dbus_dict_append_variant(&dict, "bssid", DBUS_TYPE_STRING, &address); - if (g_ascii_strcasecmp(security, "wpa") == 0 || + if (g_ascii_strcasecmp(security, "psk") == 0 || + g_ascii_strcasecmp(security, "wpa") == 0 || g_ascii_strcasecmp(security, "rsn") == 0) { const char *key_mgmt = "WPA-PSK"; connman_dbus_dict_append_variant(&dict, "key_mgmt", -- 2.7.4