Skip to content

Commit be38568

Browse files
lorc-devfabiobaltieri
authored andcommitted
net: openthread: Fix build with CONFIG_OPENTHREAD_INTERFACE_EARLY_UP
When building with CONFIG_OPENTHREAD_INTERFACE_EARLY_UP enabled, `is_up` is undefined (since 596844a). Signed-off-by: Lorenz Clijnen <[email protected]> Signed-off-by: Lorenz Clijnen <[email protected]>
1 parent 02db89e commit be38568

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/l2/openthread/openthread.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ static void ot_l2_state_changed_handler(uint32_t flags, void *context)
8282
struct openthread_state_changed_cb *entry, *next;
8383

8484
#if defined(CONFIG_OPENTHREAD_INTERFACE_EARLY_UP)
85+
bool is_up = otIp6IsEnabled(openthread_get_default_instance());
86+
8587
if (is_up) {
8688
net_if_dormant_off(ot_context->iface);
8789
} else {

0 commit comments

Comments
 (0)