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").
This commit is contained in:
Matthias Schiffer 2021-10-17 16:07:49 +02:00
parent 1b03325c01
commit 8346980194
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
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);