[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
@@ -607,10 +607,14 @@ uint16_t otPlatTimeGetXtalAccuracy(void)
#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 aShortAdd,
const otExtAddress *aExtAddr)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aCslPeriod);
OT_UNUSED_VARIABLE(aShortAdd);
OT_UNUSED_VARIABLE(aExtAddr);
return OT_ERROR_NONE;