measurement: add handling of measurements

Add logic for saving measurement-reports from STAs.

This commit does not yet save the measurement-reports received from
clients but adds the necessary code to do so. Currently the codes can
only handle beacon-reports, but link measurements can be added to it in
the future.

It also adds the new config-key measurement_report_timeout which
controls how long measurements are saved upon they are received by a
STA.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2022-01-21 21:27:39 +01:00
parent 76ccae62df
commit b0dab90887
10 changed files with 158 additions and 1 deletions

View File

@@ -210,6 +210,7 @@ remote_node_free(struct usteer_remote_node *node)
list_del(&node->list);
list_del(&node->host_list);
usteer_sta_node_cleanup(&node->node);
usteer_measurement_report_node_cleanup(&node->node);
free(node);
if (!list_empty(&host->nodes))
@@ -264,6 +265,7 @@ interface_get_node(struct usteer_remote_host *host, const char *name)
node->name = buf + addr_len + 1;
node->host = host;
INIT_LIST_HEAD(&node->node.sta_info);
INIT_LIST_HEAD(&node->node.measurements);
list_add_tail(&node->list, &remote_nodes);
list_add_tail(&node->host_list, &host->nodes);