[PATCH] dbus: Add inactive time to D-Bus signal info.

David Ruth druth at chromium.org
Thu Dec 22 12:54:41 PST 2022


This enables connection managers to receive and use this information in
the same manner that other station information is exposed.

Signed-off-by: David Ruth <druth at chromium.org>
---

 wpa_supplicant/dbus/dbus_new_helpers.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wpa_supplicant/dbus/dbus_new_helpers.c b/wpa_supplicant/dbus/dbus_new_helpers.c
index e21f9129f..06f74ad3d 100644
--- a/wpa_supplicant/dbus/dbus_new_helpers.c
+++ b/wpa_supplicant/dbus/dbus_new_helpers.c
@@ -1086,6 +1086,9 @@ int wpas_dbus_new_from_signal_information(DBusMessageIter *iter,
 	    (si->data.current_rx_rate &&
 	     !wpa_dbus_dict_append_uint32(&iter_dict, "linktxspeed",
 					  si->data.current_tx_rate)) ||
+	    (si->data.inactive_msec &&
+	     !wpa_dbus_dict_append_uint32(&iter_dict, "inactive-time",
+					 si->data.inactive_msec)) ||
 	    (si->data.tx_retry_failed &&
 	     !wpa_dbus_dict_append_uint32(&iter_dict, "retries-failed",
 					  si->data.tx_retry_failed)) ||
-- 
2.39.0.314.g84b9a713c41-goog




More information about the Hostap mailing list