Created
July 25, 2020 21:27
-
-
Save blocktrron/39c73e3fe58aa6a56b2e36c8758405e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0304c2f34e70c92b22f9730841ba368f3357a4a3 Mon Sep 17 00:00:00 2001 | |
From: Beniamino Galvani <bgalvani@redhat.com> | |
Date: Sun, 13 Oct 2019 15:18:54 +0200 | |
Subject: [PATCH] dbus: Export OWE capability and OWE BSS key_mgmt | |
Export a new 'owe' capability to indicate that wpa_supplicant was | |
built with OWE support and accepts 'key_mgmt=OWE'. Also, support 'owe' | |
in the array of BSS' available key managements. | |
Signed-off-by: Beniamino Galvani <bgalvani@redhat.com> | |
--- | |
wpa_supplicant/dbus/dbus_new_handlers.c | 12 +++++++++--- | |
1 file changed, 9 insertions(+), 3 deletions(-) | |
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c | |
index 6c36d91a0..514164800 100644 | |
--- a/wpa_supplicant/dbus/dbus_new_handlers.c | |
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c | |
@@ -984,8 +984,7 @@ dbus_bool_t wpas_dbus_getter_global_capabilities( | |
const struct wpa_dbus_property_desc *property_desc, | |
DBusMessageIter *iter, DBusError *error, void *user_data) | |
{ | |
- const char *capabilities[10] = { NULL, NULL, NULL, NULL, NULL, NULL, | |
- NULL, NULL, NULL, NULL }; | |
+ const char *capabilities[11]; | |
size_t num_items = 0; | |
#ifdef CONFIG_FILS | |
struct wpa_global *global = user_data; | |
@@ -1030,6 +1029,9 @@ dbus_bool_t wpas_dbus_getter_global_capabilities( | |
#ifdef CONFIG_SHA384 | |
capabilities[num_items++] = "sha384"; | |
#endif /* CONFIG_SHA384 */ | |
+#ifdef CONFIG_OWE | |
+ capabilities[num_items++] = "owe"; | |
+#endif /* CONFIG_OWE */ | |
return wpas_dbus_simple_array_property_getter(iter, | |
DBUS_TYPE_STRING, | |
@@ -4497,7 +4499,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[15]; /* max 15 key managements may be supported */ | |
+ const char *key_mgmt[16]; /* max 16 key managements may be supported */ | |
int n; | |
if (!dbus_message_iter_open_container(iter, DBUS_TYPE_VARIANT, | |
@@ -4550,6 +4552,10 @@ static dbus_bool_t wpas_dbus_get_bss_security_prop( | |
if (ie_data->key_mgmt & WPA_KEY_MGMT_FT_SAE) | |
key_mgmt[n++] = "ft-sae"; | |
#endif /* CONFIG_SAE */ | |
+#ifdef CONFIG_OWE | |
+ if (ie_data->key_mgmt & WPA_KEY_MGMT_OWE) | |
+ key_mgmt[n++] = "owe"; | |
+#endif /* CONFIG_OWE */ | |
if (ie_data->key_mgmt & WPA_KEY_MGMT_NONE) | |
key_mgmt[n++] = "wpa-none"; | |
-- | |
2.27.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment