[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.
This commit is contained in:
Abtin Keshavarzian
2024-12-02 15:21:36 -08:00
committed by GitHub
parent 473af53155
commit 5c8af41eb2
+1
View File
@@ -205,6 +205,7 @@ void IndirectSender::HandleChildModeChange(Child &aChild, Mle::DeviceMode aOldMo
{
message.GetIndirectTxChildMask().Remove(childIndex);
message.SetDirectTransmission();
message.SetTimestampToNow();
}
}