mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
station: add channel number to diagnostics message
As a small convenience to the user.
This commit is contained in:
parent
d4c68d7d83
commit
793228028d
@ -4722,12 +4722,16 @@ static void station_get_diagnostic_cb(
|
||||
struct l_dbus_message *reply;
|
||||
struct l_dbus_message_builder *builder;
|
||||
struct handshake_state *hs = netdev_get_handshake(station->netdev);
|
||||
uint16_t channel_num;
|
||||
|
||||
if (!info) {
|
||||
reply = dbus_error_aborted(station->get_station_pending);
|
||||
goto done;
|
||||
}
|
||||
|
||||
channel_num = band_freq_to_channel(station->connected_bss->frequency,
|
||||
NULL);
|
||||
|
||||
reply = l_dbus_message_new_method_return(station->get_station_pending);
|
||||
|
||||
builder = l_dbus_message_builder_new(reply);
|
||||
@ -4738,6 +4742,10 @@ static void station_get_diagnostic_cb(
|
||||
util_address_to_string(info->addr));
|
||||
dbus_append_dict_basic(builder, "Frequency", 'u',
|
||||
&station->connected_bss->frequency);
|
||||
|
||||
if (channel_num != 0)
|
||||
dbus_append_dict_basic(builder, "Channel", 'q', &channel_num);
|
||||
|
||||
dbus_append_dict_basic(builder, "Security", 's',
|
||||
diagnostic_akm_suite_to_security(hs->akm_suite,
|
||||
hs->wpa_ie));
|
||||
|
Loading…
Reference in New Issue
Block a user