From a485203b2ef2646b2c855ac18e31c3cdfeb0e8d2 Mon Sep 17 00:00:00 2001 From: Christof Schulze Date: Sat, 6 Jan 2018 00:13:06 +0100 Subject: [PATCH] gluon-status-page-api: stations: add rx_rate and tx_rate --- package/gluon-status-page-api/src/stations.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/gluon-status-page-api/src/stations.c b/package/gluon-status-page-api/src/stations.c index 24775a07..f91c2eb4 100644 --- a/package/gluon-status-page-api/src/stations.c +++ b/package/gluon-status-page-api/src/stations.c @@ -27,6 +27,8 @@ static struct json_object *get_stations(const struct iwinfo_ops *iw, const char json_object_object_add(station, "signal", json_object_new_int(entry->signal)); json_object_object_add(station, "noise", json_object_new_int(entry->noise)); json_object_object_add(station, "inactive", json_object_new_int(entry->inactive)); + json_object_object_add(station, "rx_rate", json_object_new_int(entry->rx_rate.rate)); + json_object_object_add(station, "tx_rate", json_object_new_int(entry->tx_rate.rate)); char macstr[18];