measurement: add missing timeout-reset
authorDavid Bauer <mail@david-bauer.net>
Mon, 4 Apr 2022 14:27:04 +0000 (16:27 +0200)
committerDavid Bauer <mail@david-bauer.net>
Mon, 4 Apr 2022 15:04:15 +0000 (17:04 +0200)
If the timeout is not reset here, it will expire based on its initial
creation regardless whether it was updated in the meantime.

Signed-off-by: David Bauer <mail@david-bauer.net>
measurement.c

index c78aae858784b0357d53e7abdb183d241f73b4cd..0c7cde273aee3ceb3fe1904947aed4956e3d11dc 100644 (file)
@@ -85,6 +85,9 @@ usteer_measurement_report_add(struct sta *sta, struct usteer_node *node,
        mr->rsni = rsni;
        mr->rcpi = rcpi;
 
+       /* Reset timeout */
+       usteer_timeout_set(&tq, &mr->timeout, config.measurement_report_timeout);
+
        return mr;
 }