3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

eapol: Make EAP packets use sm->protocol_version

Instead of hard-coding the EAPoL version to 2004 for all EAP packets,
use the version from eapol_sm.
This commit is contained in:
Denis Kenzior 2016-08-10 16:37:39 -05:00
parent abc44fe98a
commit bcfaad2b62

View File

@ -1435,7 +1435,7 @@ static void eapol_eap_msg_cb(const uint8_t *eap_data, size_t len,
uint8_t buf[sizeof(struct eapol_frame) + len];
struct eapol_frame *frame = (struct eapol_frame *) buf;
frame->header.protocol_version = EAPOL_PROTOCOL_VERSION_2004;
frame->header.protocol_version = sm->protocol_version;
frame->header.packet_type = 0;
l_put_be16(len, &frame->header.packet_len);