From 0fb292c08e2fa44eefbc56fb8674ace7e4be8bd0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 21 Dec 2018 21:27:59 +0200 Subject: Add SAE to GET_CAPABILITY key_mgmt Provide information about SAE AKM support in "GET_CAPABILITY key_mgmt" for completeness. The "GET_CAPABILITY auth_alg" case is already providing information about SAE support through user space SME. Signed-off-by: Jouni Malinen --- wpa_supplicant/ctrl_iface.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index be976a6..ebc232f 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -3988,6 +3988,14 @@ static int ctrl_iface_get_capability_key_mgmt(int res, char *strict, } #endif /* CONFIG_IEEE80211R */ #endif /* CONFIG_FILS */ +#ifdef CONFIG_SAE + if (capa->key_mgmt & WPA_DRIVER_CAPA_KEY_MGMT_SAE) { + ret = os_snprintf(pos, end - pos, " SAE"); + if (os_snprintf_error(end - pos, ret)) + return pos - buf; + pos += ret; + } +#endif /* CONFIG_SAE */ return pos - buf; } -- cgit v0.12