]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/wpa_auth.c
AP: Provide correct keyid to wpa_send_eapol() for EAPOL-Key msg 3/4
authorAlexander Wetzel <alexander@wetzel-home.de>
Sun, 15 Sep 2019 20:08:21 +0000 (22:08 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 19 Sep 2019 09:34:21 +0000 (12:34 +0300)
commit7a4b01c8797e958f18f336f23103a29d098f90e8
treedeb59a942449788d9dd6f243a72c578a0690a4e1
parenta3ebf71751ea50a18ff937e609cc3c987d36f389
AP: Provide correct keyid to wpa_send_eapol() for EAPOL-Key msg 3/4

PTKINITNEGOTIATING in the WPA state machine calls wpa_send_eapol() and
hands over the GTK instead of the PTK keyid.

Besides a confusing debug message this does not have any negative side
effects: The variable is only set to a wrong value when using WPA2 but
then it's not used.

With this patch PTKINITNEGOTIATING sets the PTK keyid unconditionally to
zero for EAPOL-Key msg 3/4 and differentiates more obviously between GTK
and PTK keyids.

Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
src/ap/wpa_auth.c