From 834698019451e67950983584604411651dd74943 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 17 Oct 2021 16:07:49 +0200 Subject: [PATCH] respondd-module-airtime: remove PHY ID again This ID is meaningless outside of a node itself, it is not necessarily stable across reboots and upgrades, and there is nothing else in the respondd data that this ID could be matched against. Remove it. This reverts commit 8d53ff54e562 ("respondd-module-airtime: add idx"). --- net/respondd-module-airtime/src/respondd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/respondd-module-airtime/src/respondd.c b/net/respondd-module-airtime/src/respondd.c index 6555835..8f73d68 100644 --- a/net/respondd-module-airtime/src/respondd.c +++ b/net/respondd-module-airtime/src/respondd.c @@ -23,10 +23,8 @@ static struct json_object *respondd_provider_statistics(void) { ifaces = get_ifaces(); while (ifaces != NULL) { struct json_object *entry = get_airtime(ifaces->ifx); - if (entry) { - json_object_object_add(entry, "phy", json_object_new_int(ifaces->wiphy)); + if (entry) json_object_array_add(wireless, entry); - } void *freeptr = ifaces; ifaces = ifaces->next; free(freeptr);