mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 16:39:52 +00:00
[radio] remove unused mCslPresent (#13232)
This commit removes RadioContext.mCslPresent. Instead we directly check whether the CSL is in the frame data, so there is not risk of mismatch.
This commit is contained in:
@@ -411,7 +411,7 @@ otError otMacFrameProcessTxSfd(otRadioFrame *aFrame, uint64_t aRadioTime, otRadi
|
||||
VerifyOrExit(!otMacFrameIsSecurityEnabled(aFrame) || !aFrame->mInfo.mTxInfo.mIsSecurityProcessed);
|
||||
|
||||
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
|
||||
if (aRadioContext->mCslPresent) // CSL IE should be filled for every transmit attempt
|
||||
if (static_cast<Mac::Frame *>(aFrame)->HasCslIe()) // CSL IE should be filled for every transmit attempt
|
||||
{
|
||||
otMacFrameSetCslIe(aFrame, aRadioContext->mCslPeriod, ComputeCslPhase(aRadioTime, aRadioContext));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user