]> git.ipfire.org Git - thirdparty/hostap.git/commit
wlantest: Get STA IEs based on EAPOL-Key msg 2/4 before PTK derivation
authorJouni Malinen <j@w1.fi>
Thu, 27 Feb 2020 22:31:33 +0000 (00:31 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 27 Feb 2020 22:35:23 +0000 (00:35 +0200)
commita8a277c169bef628ff6a76573b058ebd0914ff3d
tree1fa84744a7194fc0917f7a16746b4362d16a450f
parentb8f6b0713a61e3d9c60161405e025a99021af98f
wlantest: Get STA IEs based on EAPOL-Key msg 2/4 before PTK derivation

The previous implementation tried to update STA IE information based on
EAPOL-Key msg 2/4 to be able to handle captures that do not include the
(Re)Association Request frame. This was not sufficient (OSEN was not
included) and was done too late (the parsed information is needed for
PMK-to-PTK derivation).

Move the IE update step to happen before trying to derive the PTK if no
(Re)Association Request frame has been seen.

Signed-off-by: Jouni Malinen <j@w1.fi>
wlantest/rx_eapol.c
wlantest/rx_mgmt.c
wlantest/wlantest.h