Subject: Re: WPA regression
To: None <current-users@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: current-users
Date: 02/05/2008 21:16:10
--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Feb 05, 2008 at 09:01:46PM +0100, Jukka Salmi wrote:
> Hmm, when using CCMP (AES) instead of TKIP with hostapd, I can't get
> wpa_supplicant to work at all. It seems to loop forever trying to
> authenticate without success:

Can you try the attached patch? That fixes the loop issues I had.
I'm quite sure it is not correct, but the current code is definitely
wrong :-)

Joerg

--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="wpa.diff"

Index: src/eapol_supp/eapol_supp_sm.c
===================================================================
RCS file: /data/repo/netbsd/src/dist/wpa/src/eapol_supp/eapol_supp_sm.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 eapol_supp_sm.c
--- src/eapol_supp/eapol_supp_sm.c	26 Jan 2008 21:39:15 -0000	1.1.1.1
+++ src/eapol_supp/eapol_supp_sm.c	5 Feb 2008 16:53:45 -0000
@@ -1559,7 +1559,7 @@ void eapol_sm_notify_lower_layer_success
 	if (sm == NULL)
 		return;
 	eap_notify_lower_layer_success(sm->eap);
-	eapol_sm_step(sm);
+	//eapol_sm_step(sm);
 }
 
 

--EVF5PPMfhYS0aIcm--