aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-01-22 08:36:12 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-22 11:26:12 (GMT)
commit86d4e05374560f97ec5b704e3923eb79fde4737d (patch)
tree2233f0c2348baac32c60fd0ce727dbad43a444a1
parent3e949655ccc5fba4686d04c70380463ebf059b30 (diff)
downloadhostap-86d4e05374560f97ec5b704e3923eb79fde4737d.zip
hostap-86d4e05374560f97ec5b704e3923eb79fde4737d.tar.gz
hostap-86d4e05374560f97ec5b704e3923eb79fde4737d.tar.bz2
dbus: Expose support of SAE key management in BSS properties
This is going to be useful for NetworkManager and likely others. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index c3dc885..d64b910 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -4497,7 +4497,7 @@ static dbus_bool_t wpas_dbus_get_bss_security_prop(
DBusMessageIter iter_dict, variant_iter;
const char *group;
const char *pairwise[5]; /* max 5 pairwise ciphers is supported */
- const char *key_mgmt[13]; /* max 13 key managements may be supported */
+ const char *key_mgmt[15]; /* max 15 key managements may be supported */
int n;
if (!dbus_message_iter_open_container(iter, DBUS_TYPE_VARIANT,
@@ -4539,6 +4539,12 @@ static dbus_bool_t wpas_dbus_get_bss_security_prop(
if (ie_data->key_mgmt & WPA_KEY_MGMT_FT_FILS_SHA384)
key_mgmt[n++] = "wpa-ft-fils-sha384";
#endif /* CONFIG_FILS */
+#ifdef CONFIG_SAE
+ if (ie_data->key_mgmt & WPA_KEY_MGMT_SAE)
+ key_mgmt[n++] = "sae";
+ if (ie_data->key_mgmt & WPA_KEY_MGMT_FT_SAE)
+ key_mgmt[n++] = "ft-sae";
+#endif /* CONFIG_SAE */
if (ie_data->key_mgmt & WPA_KEY_MGMT_NONE)
key_mgmt[n++] = "wpa-none";