aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-12-30 20:28:57 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-12 15:51:52 (GMT)
commitfb8fcc2950009dcc65aa25564267147c5ec1b2b0 (patch)
treeae550d9ba70df82186859ba0a2e4cbec1c297bb3 /wpa_supplicant/sme.c
parent146f6c9a001186387872f6c19e1e3630ed3c15bc (diff)
downloadhostap-fb8fcc2950009dcc65aa25564267147c5ec1b2b0.zip
hostap-fb8fcc2950009dcc65aa25564267147c5ec1b2b0.tar.gz
hostap-fb8fcc2950009dcc65aa25564267147c5ec1b2b0.tar.bz2
SAE: Add generation of the confirm message fields
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index a5a90b5..a4a29dc 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -77,15 +77,13 @@ static struct wpabuf * sme_auth_build_sae_confirm(struct wpa_supplicant *wpa_s)
{
struct wpabuf *buf;
- buf = wpabuf_alloc(4 + 2);
+ buf = wpabuf_alloc(4 + SAE_CONFIRM_MAX_LEN);
if (buf == NULL)
return NULL;
wpabuf_put_le16(buf, 2); /* Transaction seq# */
wpabuf_put_le16(buf, WLAN_STATUS_SUCCESS);
- wpabuf_put_le16(buf, wpa_s->sme.sae.send_confirm);
- wpa_s->sme.sae.send_confirm++;
- /* TODO: Confirm */
+ sae_write_confirm(&wpa_s->sme.sae, buf);
return buf;
}