mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 07:07:47 +00:00
[mac-frame] set mCslPresent on TxFrame when CSL IE is added (#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 #10692 where this flag can remain unset.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user