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 commit8d53ff54e5
("respondd-module-airtime: add idx"). (cherry picked from commit1412236c09
)
This commit is contained in:
parent
8dbd089cc0
commit
97981c2769
|
@ -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