]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add SAE to GET_CAPABILITY key_mgmt
authorJouni Malinen <jouni@codeaurora.org>
Fri, 21 Dec 2018 19:27:59 +0000 (21:27 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 21 Dec 2018 19:49:02 +0000 (21:49 +0200)
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 <jouni@codeaurora.org>
wpa_supplicant/ctrl_iface.c

index be976a64601254e5c9fe4db1d9589ef97e346bc8..ebc232f7f8c42e3f3649e1b146bd7a7a21d0977a 100644 (file)
@@ -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;
 }