3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 13:59:24 +01:00

eapol: Default to EAPoL 2001 if unset

If protocol auto-detection is enabled (e.g. protocol_version is zero),
default to EAPOL 2001 version for EAPOL-Start messages.
This commit is contained in:
Denis Kenzior 2016-10-11 02:33:46 -05:00
parent d1d08a33ab
commit d8cb8d7810

View File

@ -932,6 +932,9 @@ static void send_eapol_start(struct l_timeout *timeout, void *user_data)
l_timeout_remove(sm->eapol_start_timeout);
sm->eapol_start_timeout = NULL;
if (!sm->protocol_version)
sm->protocol_version = EAPOL_PROTOCOL_VERSION_2001;
frame->header.protocol_version = sm->protocol_version;
frame->header.packet_type = 1;
l_put_be16(0, &frame->header.packet_len);