[low-power] extend EnableCsl API (#6675)

Include the peer's short address together with the extended address
when enabling the CSL link. This removes the need for the platform
to guess it.
This commit is contained in:
Eduardo Montoya
2021-05-25 15:21:38 -07:00
committed by GitHub
parent abcf3ba152
commit 5cd088cd76
7 changed files with 34 additions and 17 deletions
+5 -1
View File
@@ -1165,9 +1165,13 @@ static uint8_t generateAckIeData(uint8_t *aLinkMetricsIeData, uint8_t aLinkMetri
#endif
#if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE
otError otPlatRadioEnableCsl(otInstance *aInstance, uint32_t aCslPeriod, const otExtAddress *aExtAddr)
otError otPlatRadioEnableCsl(otInstance * aInstance,
uint32_t aCslPeriod,
otShortAddress aShortAddr,
const otExtAddress *aExtAddr)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aShortAddr);
OT_UNUSED_VARIABLE(aExtAddr);
otError error = OT_ERROR_NONE;