FT: Fix FT 4-Way Handshake to include PMKR1Name in messages 2 and 3
authorJouni Malinen <j@w1.fi>
Wed, 7 Apr 2010 18:04:13 +0000 (21:04 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 7 Apr 2010 18:04:13 +0000 (21:04 +0300)
commit26e23750b950cb6e460a058668e9c59a194d1d76
tree94199742bf778eb44f473d3c1b69ec389277153d
parent738a1cb286ee108f6314e0e2ab799b1a526d81d2
FT: Fix FT 4-Way Handshake to include PMKR1Name in messages 2 and 3

IEEE Std 802.11r-2008, 11A.4.2 describes FT initial mobility domain
association in an RSN to include PMKR1Name in the PMKID-List field
in RSN IE in messages 2/4 and 3/4. This makes the RSN IE not be
bitwise identical with the values used in Beacon, Probe Response,
(Re)association Request frames.

The previous versions of wpa_supplicant and hostapd did not add the
PMKR1Name value in EAPOL-Key frame and did not accept it if added
(due to bitwise comparison of RSN IEs). This commit fixes the
implementation to be compliant with the standard by adding the
PMKR1Name value into EAPOL-Key messages during FT 4-Way Handshake and
by verifying that the received value matches with the value derived
locally.

This breaks interoperability with previous wpa_supplicant/hostapd
versions.
src/ap/wpa_auth.c
src/ap/wpa_auth_ft.c
src/ap/wpa_auth_i.h
src/common/wpa_common.c
src/common/wpa_common.h
src/rsn_supp/wpa.c
src/rsn_supp/wpa_ft.c