eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit fb0a1fba2a2f6967272ae115a6badf34f2df0d7a
parent f6801be8a323b67856cb6ce414f08382c68ea112
Author: James Prestwood <prestwoj@gmail.com>
Date:   Tue, 16 Mar 2021 08:38:34 -0700

diagnostic: include AverageRSSI in GetDiagnostics

Diffstat:
Msrc/diagnostic.c | 4++++
Msrc/diagnostic.h | 2++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/diagnostic.c b/src/diagnostic.c @@ -39,10 +39,14 @@ bool diagnostic_info_to_dict(const struct diagnostic_station_info *info, struct l_dbus_message_builder *builder) { int16_t rssi = (int16_t)info->cur_rssi; + int16_t avg_rssi = (int16_t)info->avg_rssi; if (info->have_cur_rssi) dbus_append_dict_basic(builder, "RSSI", 'n', &rssi); + if (info->have_avg_rssi) + dbus_append_dict_basic(builder, "AverageRSSI", 'n', &avg_rssi); + if (info->have_rx_mcs) { switch (info->rx_mcs_type) { case DIAGNOSTIC_MCS_TYPE_HT: diff --git a/src/diagnostic.h b/src/diagnostic.h @@ -30,6 +30,7 @@ enum diagnostic_mcs_type { struct diagnostic_station_info { uint8_t addr[6]; int8_t cur_rssi; + int8_t avg_rssi; enum diagnostic_mcs_type rx_mcs_type; uint32_t rx_bitrate; @@ -41,6 +42,7 @@ struct diagnostic_station_info { uint32_t expected_throughput; bool have_cur_rssi : 1; + bool have_avg_rssi : 1; bool have_rx_mcs : 1; bool have_tx_mcs : 1; bool have_rx_bitrate : 1;