Skip to content

Commit

Permalink
[csl] ensure child is synchronized when preparing a CSL transmission (#…
Browse files Browse the repository at this point in the history
…9199)

Avoid potential CSL Transmitter crash when using a CSL period with
0 value in `GetNextCslTransmissionDelay`.
  • Loading branch information
edmont authored Jun 22, 2023
1 parent dad7754 commit 337ea25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/thread/csl_tx_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 337ea25

Please sign in to comment.