sae: Properly return -EAGAIN when retransmitting

Make sure to return -EAGAIN whenever a received frame from the peer
results in a retransmission.  This also prevents the frame from being
mistakenly processed further in sae_rx_authenticate.
This commit is contained in:
Denis Kenzior 2021-07-10 19:07:41 -05:00
parent d8f9d9d45c
commit 3474953d16
1 changed files with 2 additions and 2 deletions

View File

@ -912,7 +912,7 @@ static int sae_verify_confirmed(struct sae_sm *sm, uint16_t trans,
sae_send_commit(sm, true);
sae_send_confirm(sm);
return 0;
return -EAGAIN;
}
/*
@ -964,7 +964,7 @@ static int sae_verify_accepted(struct sae_sm *sm, uint16_t trans,
sae_send_confirm(sm);
return 0;
return -EAGAIN;
}
static int sae_verify_packet(struct sae_sm *sm, uint16_t trans,