]> git.ipfire.org Git - thirdparty/hostap.git/commit
wlantest: Distinguish EAPOL-Key msg 4/4 from 2/4 based on Key Nonce
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 5 Sep 2022 18:16:44 +0000 (21:16 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 5 Sep 2022 18:16:44 +0000 (21:16 +0300)
commit32592935feefb4742dd14bf6192595113e93132b
treea24baaae715bf1a5a0c6a1c22093a68b60e9944e
parentb5db77840fe9ef5ce6d8dfeed92e42923f472c77
wlantest: Distinguish EAPOL-Key msg 4/4 from 2/4 based on Key Nonce

IEEE P802.11be adds the MAC Address KDE into the EAPOL-Key msg 4/4 when
MLO is used and as such, the previously used check for Key Data Length
value 0 is not sufficient for recognizing the EAPOL-Key msg 4/4 anymore.
Also check for an all zero Key Nonce value since that field is supposed
to be zero in EAPOL-Key msg 4/4 and it has to be a random value in
EAPOL-Key msg 2/4.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wlantest/rx_eapol.c