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:
parent
1dd5cd1706
commit
1412236c09
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue