mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
sae: remove double sc increment
The send confirm counter is incremented before calling sae_send_confirm in all cases, but the function itself was also incrementing sc after sending the packet. This isn't critical to the successful execution of SAE as the AP just uses the sc value in the packet but it did violate the 802.11 spec.
This commit is contained in:
parent
d8882a75e5
commit
dd1885de11
@ -468,8 +468,6 @@ static void sae_send_confirm(struct sae_sm *sm)
|
|||||||
memcpy(ptr, confirm, 32);
|
memcpy(ptr, confirm, 32);
|
||||||
ptr += 32;
|
ptr += 32;
|
||||||
|
|
||||||
sm->sc++;
|
|
||||||
|
|
||||||
sm->state = SAE_STATE_CONFIRMED;
|
sm->state = SAE_STATE_CONFIRMED;
|
||||||
|
|
||||||
sm->tx(sm->handshake->aa, body, 38, sm->user_data);
|
sm->tx(sm->handshake->aa, body, 38, sm->user_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user