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 8d53ff54e5 ("respondd-module-airtime: add idx").

(cherry picked from commit 1412236c09)
This commit is contained in:
Matthias Schiffer 2021-10-17 16:07:49 +02:00 committed by David Bauer
parent 8dbd089cc0
commit 97981c2769
1 changed files with 1 additions and 3 deletions

View File

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