hostapd: Require EAPOL-Key type to match with selected protocol
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 27 May 2009 06:52:24 +0000 (09:52 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 27 May 2009 06:52:24 +0000 (09:52 +0300)
commitf8e96eb6fd960a017793942cff0eb43b09f444c6
tree9e9ef27b8309e92a3103ce1d0eaf76e63b79f56a
parent077a781f7ab4e87955f1a97fcd0b939c74a57165
hostapd: Require EAPOL-Key type to match with selected protocol

Previously, we would have allowed both the WPA and RSN EAPOL-Key
types to be used regardless of whether the association is using
WPA or RSN/WPA2. This shouldn't result in any significant problems
on the Authenticator side, but anyway, we should check the type and
ignore the EAPOL-Key frames that used unexpected type.
hostapd/wpa.c