mirror of
https://github.com/espressif/openthread.git
synced 2026-10-04 06:47:36 +00:00
[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:
@@ -205,6 +205,7 @@ void IndirectSender::HandleChildModeChange(Child &aChild, Mle::DeviceMode aOldMo
|
||||
{
|
||||
message.GetIndirectTxChildMask().Remove(childIndex);
|
||||
message.SetDirectTransmission();
|
||||
message.SetTimestampToNow();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user