node: move roam-events to dedicated struct

Move the roam event counters to a dedicated struct.

Update the ubus output to represent this new organization.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2021-11-26 01:36:43 +01:00
parent edbe7d41dd
commit e51ea7ac1a
5 changed files with 15 additions and 9 deletions

View File

@@ -193,7 +193,7 @@ interface_add_station(struct usteer_remote_node *node, struct blob_attr *data)
continue;
if (current_time - local_si->last_connected < config.roam_process_timeout) {
node->node.roam_destination++;
node->node.roam_events.target++;
break;
}
}