From e1773e8bd1dd0dd6669c666d576970a07f156358 Mon Sep 17 00:00:00 2001 From: Shreyas Sheth Date: Mon, 24 Feb 2025 17:41:16 +0530 Subject: [PATCH] fix(esp_wifi): Fix send_confirm according to specification provided by IEEE 802.11 --- components/wpa_supplicant/src/common/sae.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/wpa_supplicant/src/common/sae.c b/components/wpa_supplicant/src/common/sae.c index 363aa0c4fe..f5b61bad62 100644 --- a/components/wpa_supplicant/src/common/sae.c +++ b/components/wpa_supplicant/src/common/sae.c @@ -2312,10 +2312,10 @@ int sae_write_confirm(struct sae_data *sae, struct wpabuf *buf) hash_len = sae->tmp->kck_len; /* Send-Confirm */ - sc = wpabuf_put(buf, 0); - wpabuf_put_le16(buf, sae->send_confirm); if (sae->send_confirm < 0xffff) sae->send_confirm++; + sc = wpabuf_put(buf, 0); + wpabuf_put_le16(buf, sae->send_confirm); if (sae->tmp->ec) { if (sae_cn_confirm_ecc(sae, sc, sae->tmp->own_commit_scalar,