Skip to content

Commit

Permalink
[mac-frame] set mCslPresent on TxFrame when CSL IE is added (open…
Browse files Browse the repository at this point in the history
…thread#10939)

This commit ensures that the `mCslPresent` flag is set on `TxFrame`
when the CSL IE header is appended to the frame. This addresses an
issue introduced in openthread#10692 where this flag can remain unset.
  • Loading branch information
abtink authored Nov 19, 2024
1 parent 10d8b68 commit 9cd65f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/mac/mac_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ void TxFrame::Info::PrepareHeadersIn(TxFrame &aTxFrame) const
{
builder.Append<HeaderIe>()->Init(CslIe::kHeaderIeId, sizeof(CslIe));
builder.Append<CslIe>();
aTxFrame.SetCslIePresent(true);
}
#endif

Expand Down

0 comments on commit 9cd65f7

Please sign in to comment.