SAE: Add sae_h2e and sae_pk to wpa_supplicant STATUS command

This provides additional information on which options were used during
SAE authentication.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-06-06 12:09:47 +03:00 committed by Jouni Malinen
parent cc22fb1b86
commit a752695290

View file

@ -2283,8 +2283,12 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
!wpa_s->ap_iface && !wpa_s->ap_iface &&
#endif /* CONFIG_AP */ #endif /* CONFIG_AP */
wpa_s->sme.sae.state == SAE_ACCEPTED) { wpa_s->sme.sae.state == SAE_ACCEPTED) {
ret = os_snprintf(pos, end - pos, "sae_group=%d\n", ret = os_snprintf(pos, end - pos, "sae_group=%d\n"
wpa_s->sme.sae.group); "sae_h2e=%d\n"
"sae_pk=%d\n",
wpa_s->sme.sae.group,
wpa_s->sme.sae.h2e,
wpa_s->sme.sae.pk);
if (os_snprintf_error(end - pos, ret)) if (os_snprintf_error(end - pos, ret))
return pos - buf; return pos - buf;
pos += ret; pos += ret;