Skip to content
/ ot-nxp Public
forked from openthread/ot-nxp

Commit

Permalink
k32w1: radio: fix compilation when CSL Rx is disabled
Browse files Browse the repository at this point in the history
otMacFrameSetCslIe() is compiled when
OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE is enabled

Signed-off-by: George Stefan <[email protected]>
  • Loading branch information
George-Stefan committed Nov 6, 2023
1 parent 3532731 commit 6527338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/k32w1/k32w1/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
{
otMacFrameSetFrameCounter(aFrame, sMacFrameCounter++);

#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
if (aFrame->mInfo.mTxInfo.mCslPresent)
{
uint32_t hdrTimeUs;
Expand All @@ -546,6 +547,7 @@ otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
(TX_ENCRYPT_DELAY_SYM + IEEE802154_PHY_SHR_LEN_SYM) * IEEE802154_SYMBOL_TIME_US;
otMacFrameSetCslIe(aFrame, sCslPeriod, rf_compute_csl_phase(hdrTimeUs));
}
#endif
}
}
}
Expand Down

0 comments on commit 6527338

Please sign in to comment.