[PATCH usteer 3/5] remote: update the time before handling a message
Patrick Hein
bagbag98 at googlemail.com
Sun Oct 25 10:38:34 PDT 2026
hostapd events, the station poll, the roam check and the update timer
all update current_time, but the receive path does not. Times derived
from a remote message, such as when its stations were last seen, can
therefore be off by up to an update interval.
Signed-off-by: Patrick Hein <bagbag98 at googlemail.com>
---
remote.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/remote.c b/remote.c
index bf58ea3..b88f2ce 100644
--- a/remote.c
+++ b/remote.c
@@ -331,6 +331,8 @@ interface_recv_msg(struct interface *iface, char *addr_str, void *buf, int len)
if (msg.id == local_id)
return;
+ usteer_update_time();
+
MSG(NETWORK, "Received message on %s (id=%08x->%08x seq=%d len=%d)\n",
interface_name(iface), msg.id, local_id, msg.seq, len);
--
2.56.0
More information about the openwrt-devel
mailing list