From c2330c5332934697bd39652a039a57e0433bf6e9 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 29 Mar 2021 10:33:09 -0700 Subject: [PATCH] station: add Security key to GetDiagnostics --- src/station.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/station.c b/src/station.c index bfc23f88..ba4483e6 100644 --- a/src/station.c +++ b/src/station.c @@ -3631,6 +3631,7 @@ static void station_get_diagnostic_cb( struct station *station = user_data; struct l_dbus_message *reply; struct l_dbus_message_builder *builder; + struct handshake_state *hs = netdev_get_handshake(station->netdev); if (!info) { reply = dbus_error_aborted(station->get_station_pending); @@ -3647,6 +3648,9 @@ static void station_get_diagnostic_cb( util_address_to_string(info->addr)); dbus_append_dict_basic(builder, "Frequency", 'u', &station->connected_bss->frequency); + dbus_append_dict_basic(builder, "Security", 's', + diagnostic_akm_suite_to_security(hs->akm_suite, + hs->wpa_ie)); diagnostic_info_to_dict(info, builder);