Skip to content

Commit 11b6bd0

Browse files
Damian-Nordicnashif
authored andcommitted
net: openthread: support Wake-up End Device without CSL receiver
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]>
1 parent de95191 commit 11b6bd0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

modules/openthread/platform/openthread-core-zephyr-config.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,9 @@
211211
*
212212
*/
213213
#define OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE \
214-
(CONFIG_OPENTHREAD_CSL_RECEIVER && \
215-
(OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2))
214+
((CONFIG_OPENTHREAD_CSL_RECEIVER && \
215+
(OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2)) || \
216+
CONFIG_OPENTHREAD_WAKEUP_END_DEVICE)
216217

217218
/* Zephyr does not use OpenThread's heap. mbedTLS will use heap memory allocated
218219
* by Zephyr. Here, we use some dummy values to prevent OpenThread warnings.

modules/openthread/platform/radio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ otError otPlatRadioReceive(otInstance *aInstance, uint8_t aChannel)
802802
return OT_ERROR_NONE;
803803
}
804804

805-
#if defined(CONFIG_OPENTHREAD_CSL_RECEIVER)
805+
#if defined(CONFIG_OPENTHREAD_CSL_RECEIVER) || defined(CONFIG_OPENTHREAD_WAKEUP_END_DEVICE)
806806
otError otPlatRadioReceiveAt(otInstance *aInstance, uint8_t aChannel,
807807
uint32_t aStart, uint32_t aDuration)
808808
{

0 commit comments

Comments
 (0)