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
1 changed files with 0 additions and 2 deletions

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);