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
1 changed files with 1 additions and 1 deletions

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);