gluon-status-page-api: stations: add rx_rate and tx_rate

This commit is contained in:
Christof Schulze 2018-01-06 00:13:06 +01:00
parent a4c44d27b3
commit a485203b2e

View File

@ -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];