Skip to content

Commit

Permalink
[indirect-sender] reset message timestamp on child mode change to non…
Browse files Browse the repository at this point in the history
…-sleepy (openthread#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.
  • Loading branch information
abtink authored Dec 2, 2024
1 parent 473af53 commit 5c8af41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/thread/indirect_sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ void IndirectSender::HandleChildModeChange(Child &aChild, Mle::DeviceMode aOldMo
{
message.GetIndirectTxChildMask().Remove(childIndex);
message.SetDirectTransmission();
message.SetTimestampToNow();
}
}

Expand Down

0 comments on commit 5c8af41

Please sign in to comment.