[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:
Eduardo Montoya
2023-06-22 14:01:40 -07:00
committed by GitHub
parent dad7754752
commit 337ea25da3
+1
View File
@@ -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);