From 5c8af41eb2735dec09e7dc5418cdd89d19a1824f Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 2 Dec 2024 15:21:36 -0800 Subject: [PATCH] [indirect-sender] reset message timestamp on child mode change to non-sleepy (#10979) This commit resets (to now) the timestamp of queued messages for a previously sleepy child when the child mode changes to non-sleepy. This ensures that delay-aware queue management is correctly applied to these messages and avoids them being dropped immediately. --- src/core/thread/indirect_sender.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/thread/indirect_sender.cpp b/src/core/thread/indirect_sender.cpp index b18bbf6ea7b..b465c8de8cf 100644 --- a/src/core/thread/indirect_sender.cpp +++ b/src/core/thread/indirect_sender.cpp @@ -205,6 +205,7 @@ void IndirectSender::HandleChildModeChange(Child &aChild, Mle::DeviceMode aOldMo { message.GetIndirectTxChildMask().Remove(childIndex); message.SetDirectTransmission(); + message.SetTimestampToNow(); } }