3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 20:12:37 +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:
James Prestwood 2018-08-14 11:16:10 -07:00 committed by Denis Kenzior
parent d8882a75e5
commit dd1885de11

View File

@ -468,8 +468,6 @@ static void sae_send_confirm(struct sae_sm *sm)
memcpy(ptr, confirm, 32);
ptr += 32;
sm->sc++;
sm->state = SAE_STATE_CONFIRMED;
sm->tx(sm->handshake->aa, body, 38, sm->user_data);