]> git.ipfire.org Git - thirdparty/hostap.git/commit
RSN IBSS: Fix TK clearing on Authentication frame RX
authorJouni Malinen <j@w1.fi>
Sat, 14 Jan 2017 11:56:18 +0000 (13:56 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 14 Jan 2017 11:56:18 +0000 (13:56 +0200)
commitb98706c14b8ff8439e596c60eb123b78eb4f5a8f
tree12dc02560901fc4eddd0f225b91e1972dcb5e8dd
parentc5420f9c921bcd7288e5b07fc4e86ab461398c66
RSN IBSS: Fix TK clearing on Authentication frame RX

When wpa_supplicant was processing a received Authentication frame (seq
1) from a peer STA for which there was already a TK configured to the
driver, debug log claimed that the PTK gets cleared, but the actual
call to clear the key was actually dropped due to AUTH vs. SUPP set_key
selection. Fix this by explicitly clearing the TK in case it was set
and an Authentication frame (seq 1) is received.

This fixes some cases where EAPOL-Key frames were sent encrypted using
the old key when a peer STA restarted itself and lost the key and had to
re-join the IBSS. Previously, that state required timing out the 4-way
handshake and Deauthentication frame exchange to recover.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ibss_rsn.c