mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
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:
parent
d8f9d9d45c
commit
3474953d16
@ -912,7 +912,7 @@ static int sae_verify_confirmed(struct sae_sm *sm, uint16_t trans,
|
|||||||
sae_send_commit(sm, true);
|
sae_send_commit(sm, true);
|
||||||
sae_send_confirm(sm);
|
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);
|
sae_send_confirm(sm);
|
||||||
|
|
||||||
return 0;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sae_verify_packet(struct sae_sm *sm, uint16_t trans,
|
static int sae_verify_packet(struct sae_sm *sm, uint16_t trans,
|
||||||
|
Loading…
Reference in New Issue
Block a user