Skip to content

Commit

Permalink
net: openthread: support Wake-up End Device without CSL receiver
Browse files Browse the repository at this point in the history
Make it possible to enable Wake-up End Device feature with
CSL receiver disabled (to receive wake-up frames on MED).

Signed-off-by: Damian Krolik <[email protected]>
  • Loading branch information
Damian-Nordic authored and ankuns committed Nov 12, 2024
1 parent 77839d0 commit 2d6f833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions modules/openthread/platform/openthread-core-zephyr-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,9 @@
*
*/
#define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE \
(CONFIG_OPENTHREAD_CSL_RECEIVER && \
(OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2))
((CONFIG_OPENTHREAD_CSL_RECEIVER && \
(OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2)) || \
CONFIG_OPENTHREAD_WAKEUP_END_DEVICE)

/* Zephyr does not use OpenThread's heap. mbedTLS will use heap memory allocated
* by Zephyr. Here, we use some dummy values to prevent OpenThread warnings.
Expand Down
2 changes: 1 addition & 1 deletion modules/openthread/platform/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ otError otPlatRadioReceive(otInstance *aInstance, uint8_t aChannel)
return OT_ERROR_NONE;
}

#if defined(CONFIG_OPENTHREAD_CSL_RECEIVER)
#if defined(CONFIG_OPENTHREAD_CSL_RECEIVER) || defined(CONFIG_OPENTHREAD_WAKEUP_END_DEVICE)
otError otPlatRadioReceiveAt(otInstance *aInstance, uint8_t aChannel,
uint32_t aStart, uint32_t aDuration)
{
Expand Down

0 comments on commit 2d6f833

Please sign in to comment.