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:
parent
d1d08a33ab
commit
d8cb8d7810
@ -932,6 +932,9 @@ static void send_eapol_start(struct l_timeout *timeout, void *user_data)
|
|||||||
l_timeout_remove(sm->eapol_start_timeout);
|
l_timeout_remove(sm->eapol_start_timeout);
|
||||||
sm->eapol_start_timeout = NULL;
|
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.protocol_version = sm->protocol_version;
|
||||||
frame->header.packet_type = 1;
|
frame->header.packet_type = 1;
|
||||||
l_put_be16(0, &frame->header.packet_len);
|
l_put_be16(0, &frame->header.packet_len);
|
||||||
|
Loading…
Reference in New Issue
Block a user