Improve EAPOL-Key handshake stability with retransmitted frames
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 16 Dec 2008 12:17:33 +0000 (14:17 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 16 Dec 2008 12:17:33 +0000 (14:17 +0200)
commit22a299ee9d192d06c235428d017234539fbf6a62
tree6de9bf6c3829726dd517fe418ef205821104a847
parent3d799c0b2cb79f4980b14eea6de80d11ddb75c45
Improve EAPOL-Key handshake stability with retransmitted frames

Accept response to any pending request, not just the last one. This
gives the Supplicant more time to reply since hostapd will now allow up
to three seconds for the reply to the first EAPOL-Key frame transmission
(and two seconds for the first retry and one second for the last) while
the previous version invalidated any old request immediately when
sending a retransmitted frame.

If the Supplicant replies to more than one request, only the first reply
to arrive at the Authenticator will be processed. As far as the
Supplicant is concerned, this behavior does not differ from the previous
one except for being less likely to cause unneeded retransmissions of
EAPOL-Key frames.

This can help in cases where power saving is used when the group key is
rekeyed or when there is excessive traffic on the channel that can delay
(or drop) EAPOL-Key frames.
hostapd/wpa.c
hostapd/wpa_auth_i.h