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

@@ -163,7 +163,7 @@ usteer_local_node_assoc_update(struct sta_info *si, struct blob_attr *data)
continue;
if (current_time - remote_si->last_connected < config.roam_process_timeout) {
rn->node.roam_source++;
rn->node.roam_events.source++;
/* Don't abort looking for roam sources here.
* The client might have roamed via another node
* within the roam-timeout.