From 6c5ae87f1adf054532cc83964f11ecda15632f13 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 22 Feb 2017 16:58:12 -0600 Subject: [PATCH] netdev: Relax 4-way handshake condition Right now the code checks for is_rsn to wait for the 4-way handshake and sends the NETDEV_EVENT_4WAY_HANDSHAKE. However, is_rsn condition is not true for WSC connections since they do not set an RSN field. Still, they are EAP based handshakes and should be treated in the same manner. We relax the is_rsn check to instead check for netdev->sm. Currently netdev->sm is only non-NULL if handshake->own_ie field is not NULL or in the case of eap-wsc connections. --- src/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netdev.c b/src/netdev.c index 0d1af510..f16173d1 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -1366,7 +1366,7 @@ static void netdev_connect_event(struct l_genl_msg *msg, netdev->user_data); netdev->connect_cb = NULL; } - } else if (is_rsn) { + } else if (netdev->sm) { if (netdev->event_filter) netdev->event_filter(netdev, NETDEV_EVENT_4WAY_HANDSHAKE,