mirror of
https://github.com/espressif/openthread.git
synced 2026-10-02 13:57:38 +00:00
Save Data Sequence Number on indirect tx, regardless of sec mode. (#1959)
This commit is contained in:
@@ -1520,6 +1520,8 @@ void MeshForwarder::HandleSentFrame(Mac::Frame &aFrame, otError aError)
|
|||||||
// of the frame following the receipt of a data request command (data
|
// of the frame following the receipt of a data request command (data
|
||||||
// poll) from the sleepy child.
|
// poll) from the sleepy child.
|
||||||
|
|
||||||
|
child->SetIndirectDataSequenceNumber(aFrame.GetSequence());
|
||||||
|
|
||||||
if (aFrame.GetSecurityEnabled())
|
if (aFrame.GetSecurityEnabled())
|
||||||
{
|
{
|
||||||
uint32_t frameCounter;
|
uint32_t frameCounter;
|
||||||
@@ -1530,8 +1532,6 @@ void MeshForwarder::HandleSentFrame(Mac::Frame &aFrame, otError aError)
|
|||||||
|
|
||||||
aFrame.GetKeyId(keyId);
|
aFrame.GetKeyId(keyId);
|
||||||
child->SetIndirectKeyId(keyId);
|
child->SetIndirectKeyId(keyId);
|
||||||
|
|
||||||
child->SetIndirectDataSequenceNumber(aFrame.GetSequence());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ExitNow();
|
ExitNow();
|
||||||
|
|||||||
Reference in New Issue
Block a user