mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
fix(esp_wifi): Fix send_confirm according to specification provided by IEEE 802.11
This commit is contained in:
@@ -2312,10 +2312,10 @@ int sae_write_confirm(struct sae_data *sae, struct wpabuf *buf)
|
|||||||
hash_len = sae->tmp->kck_len;
|
hash_len = sae->tmp->kck_len;
|
||||||
|
|
||||||
/* Send-Confirm */
|
/* Send-Confirm */
|
||||||
sc = wpabuf_put(buf, 0);
|
|
||||||
wpabuf_put_le16(buf, sae->send_confirm);
|
|
||||||
if (sae->send_confirm < 0xffff)
|
if (sae->send_confirm < 0xffff)
|
||||||
sae->send_confirm++;
|
sae->send_confirm++;
|
||||||
|
sc = wpabuf_put(buf, 0);
|
||||||
|
wpabuf_put_le16(buf, sae->send_confirm);
|
||||||
|
|
||||||
if (sae->tmp->ec) {
|
if (sae->tmp->ec) {
|
||||||
if (sae_cn_confirm_ecc(sae, sc, sae->tmp->own_commit_scalar,
|
if (sae_cn_confirm_ecc(sae, sc, sae->tmp->own_commit_scalar,
|
||||||
|
Reference in New Issue
Block a user