mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 01:17:46 +00:00
[csl] ensure child is synchronized when preparing a CSL transmission (#9199)
Avoid potential CSL Transmitter crash when using a CSL period with 0 value in `GetNextCslTransmissionDelay`.
This commit is contained in:
@@ -181,6 +181,7 @@ Mac::TxFrame *CslTxScheduler::HandleFrameRequest(Mac::TxFrames &aTxFrames)
|
||||
uint32_t delay;
|
||||
|
||||
VerifyOrExit(mCslTxChild != nullptr);
|
||||
VerifyOrExit(mCslTxChild->IsCslSynchronized());
|
||||
|
||||
#if OPENTHREAD_CONFIG_MULTI_RADIO
|
||||
frame = &aTxFrames.GetTxFrame(Mac::kRadioTypeIeee802154);
|
||||
|
||||
Reference in New Issue
Block a user