]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix TK configuration to the driver in EAPOL-Key 3/4 retry case
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 1 Oct 2015 15:51:04 +0000 (18:51 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 1 Oct 2015 15:54:54 +0000 (18:54 +0300)
commitad00d64e7d8827b3cebd665a0ceb08adabf15e1e
tree1e85194bbfbf6da372a274a8f467595e55690ac8
parent60bfe7061dfeb3b9e5b33a70352c1dcfcd198fa6
Fix TK configuration to the driver in EAPOL-Key 3/4 retry case

Commit 7d711541dced759b34313477d5d163e65c5b0131 ('Clear TK part of PTK
after driver key configuration') started clearing TK from memory
immediately after having configured it to the driver when processing
EAPOL-Key message 3/4. While this covered the most common case, it did
not take into account the possibility of the authenticator having to
retry EAPOL-Key message 3/4 in case the first EAPOL-Key message 4/4
response is lost. That case ended up trying to reinstall the same TK to
the driver, but the key was not available anymore.

Fix the EAPOL-Key message 3/4 retry case by configuring TK to the driver
only once. There was no need to try to set the same key after each
EAPOL-Key message 3/4 since TK could not change. If actual PTK rekeying
is used, the new TK will be configured once when processing the new
EAPOL-Key message 3/4 for the first time.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/rsn_supp/wpa.c
src/rsn_supp/wpa_i.h