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

eapol: Don't try setting protocol_version in eapol_rx_auth_packet

In authenticator mode we'll always have protocol_version set from the
start so the condition is always going to be false.
This commit is contained in:
Andrew Zaborowski 2020-08-13 02:50:14 +02:00 committed by Denis Kenzior
parent b40d7460b3
commit 225a28f364

View File

@ -2210,9 +2210,6 @@ static void eapol_rx_auth_packet(uint16_t proto, const uint8_t *from,
{
struct eapol_sm *sm = user_data;
if (!sm->protocol_version)
sm->protocol_version = frame->header.protocol_version;
switch (frame->header.packet_type) {
case 3: /* EAPOL-Key */
eapol_auth_key_handle(sm, frame);