fix(esp_wifi): Fix send_confirm according to specification provided by IEEE 802.11

This commit is contained in:
Shreyas Sheth
2025-02-24 17:41:16 +05:30
parent 7b18d6bd0d
commit e1773e8bd1

View File

@ -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,