mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-07 04:34:04 -05:00
dbus: Expose availability of FT on D-Bus
This lets us know whether we can attempt to use FT-PSK, FT-EAP, FT-EAP-SHA384, FT-FILS-SHA256 or FT-FILS-SHA384. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
This commit is contained in:
parent
8b67f6496e
commit
eb7e747931
@ -980,8 +980,8 @@ dbus_bool_t wpas_dbus_getter_global_capabilities(
|
|||||||
const struct wpa_dbus_property_desc *property_desc,
|
const struct wpa_dbus_property_desc *property_desc,
|
||||||
DBusMessageIter *iter, DBusError *error, void *user_data)
|
DBusMessageIter *iter, DBusError *error, void *user_data)
|
||||||
{
|
{
|
||||||
const char *capabilities[8] = { NULL, NULL, NULL, NULL, NULL, NULL,
|
const char *capabilities[9] = { NULL, NULL, NULL, NULL, NULL, NULL,
|
||||||
NULL, NULL };
|
NULL, NULL, NULL };
|
||||||
size_t num_items = 0;
|
size_t num_items = 0;
|
||||||
#ifdef CONFIG_FILS
|
#ifdef CONFIG_FILS
|
||||||
struct wpa_global *global = user_data;
|
struct wpa_global *global = user_data;
|
||||||
@ -1020,6 +1020,9 @@ dbus_bool_t wpas_dbus_getter_global_capabilities(
|
|||||||
if (fils_sk_pfs_supported)
|
if (fils_sk_pfs_supported)
|
||||||
capabilities[num_items++] = "fils_sk_pfs";
|
capabilities[num_items++] = "fils_sk_pfs";
|
||||||
#endif /* CONFIG_FILS */
|
#endif /* CONFIG_FILS */
|
||||||
|
#ifdef CONFIG_IEEE80211R
|
||||||
|
capabilities[num_items++] = "ft";
|
||||||
|
#endif /* CONFIG_IEEE80211R */
|
||||||
|
|
||||||
return wpas_dbus_simple_array_property_getter(iter,
|
return wpas_dbus_simple_array_property_getter(iter,
|
||||||
DBUS_TYPE_STRING,
|
DBUS_TYPE_STRING,
|
||||||
|
Loading…
Reference in New Issue
Block a user