]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Set EAPOL workarounds dynamically based on association
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 8 Sep 2014 13:49:08 +0000 (16:49 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 8 Sep 2014 14:16:04 +0000 (17:16 +0300)
commitb08d5fa793e2bc4f1f21d0696ea910652a439814
treedd80163ed04c4700cc5162a0d12d20531749bb1f
parent8511a0f67b6ade371264a3c18ea4301c605a02aa
WPS: Set EAPOL workarounds dynamically based on association

Previously, the shorter startWhen value was used based on build
parameters (i.e., if WPS was enabled). This is not really ideal and the
knowledge of WPS use can be provided to the EAPOL state machine to allow
this (and similar WPS workarounds) to be done only when the association
is for the purpose of WPS.

Reduce the default startWhen value from 3 to 2 seconds for non-WPS case
since WPS builds have likely received most testing for the past years
with the 1 second value and there is no strong justification for forcing
the longer 3 second wait should a frame be lost or something else
require the EAPOL-Start to initiate operation after a connection.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/eapol_supp/eapol_supp_sm.c
src/eapol_supp/eapol_supp_sm.h
wpa_supplicant/wpa_supplicant.c