wpa_supplicant takes several minutes to join WPA2 protected network
j at w1.fi
Sat Sep 5 14:06:44 EDT 2015
On Wed, Aug 26, 2015 at 01:16:29PM +0200, Jacob Siverskog wrote:
> I want to bump the wpa_supplicant version I'm running, but I'm running
> into issues where it sometimes takes several minutes to join a WPA2
> protected network. The previous version (provided by Texas
> Instruments, based on 2.1) didn't have this issue. The more recent
> version provided by TI (based on 2.4) also contain the issue.
You may need to talk to TI if you are using software components from
them rather than upstream.. Is there an upstream version that does not
show this issue?
> I have tried the latest master (355a5c8) and it shows the same behavior.
> What happens is that wpa_supplicant hangs at "wlan0-sta: State:
> GROUP_HANDSHAKE -> COMPLETED" for several minutes, after which it
> usually recover and authenticates successfully. This currently occurs
> about 5-10% of the time, at least with this combination of system and
> access point (but I've seen it with other systems and other APs).
"Hanging" here is expected and correct behavior, i.e., all the steps
that wpa_supplicant was asked to do were completed at that point in
time. Other than there being retries on EAPOL-Key msg 3/4, the log did
not seem to show anything unexpected.
> Is there any way to debug this further?
You may need to take a look at what the driver is doing with the
EAPOL-Key msg 4/4 and why the AP does not either receive it or accept
it. A sniffer capture from the operating channel might be helpful in
figuring that out.
Jouni Malinen PGP id EFC895FA
More information about the HostAP