Skip to content

Commit b32602c

Browse files
committed
fix(esp_wifi): Fix send_confirm according to specification provided by IEEE 802.11
1 parent 708e703 commit b32602c

File tree

1 file changed

+2
-2
lines changed
  • components/wpa_supplicant/src/common

1 file changed

+2
-2
lines changed

components/wpa_supplicant/src/common/sae.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,10 +2312,10 @@ int sae_write_confirm(struct sae_data *sae, struct wpabuf *buf)
23122312
hash_len = sae->tmp->kck_len;
23132313

23142314
/* Send-Confirm */
2315-
sc = wpabuf_put(buf, 0);
2316-
wpabuf_put_le16(buf, sae->send_confirm);
23172315
if (sae->send_confirm < 0xffff)
23182316
sae->send_confirm++;
2317+
sc = wpabuf_put(buf, 0);
2318+
wpabuf_put_le16(buf, sae->send_confirm);
23192319

23202320
if (sae->tmp->ec) {
23212321
if (sae_cn_confirm_ecc(sae, sc, sae->tmp->own_commit_scalar,

0 commit comments

Comments
 (0)