From 93af7c2b5da2f1e0db88584870a73aadf240efad Mon Sep 17 00:00:00 2001 From: Lorenz Clijnen Date: Tue, 22 Jul 2025 15:18:40 +0200 Subject: [PATCH] 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 Signed-off-by: Lorenz Clijnen --- subsys/net/l2/openthread/openthread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/net/l2/openthread/openthread.c b/subsys/net/l2/openthread/openthread.c index 4ed6a34162f84..32a9727bafac6 100644 --- a/subsys/net/l2/openthread/openthread.c +++ b/subsys/net/l2/openthread/openthread.c @@ -75,6 +75,8 @@ static void ot_l2_state_changed_handler(uint32_t flags, void *context) struct openthread_state_changed_cb *entry, *next; #if defined(CONFIG_OPENTHREAD_INTERFACE_EARLY_UP) + bool is_up = otIp6IsEnabled(openthread_get_default_instance()); + if (is_up) { net_if_dormant_off(ot_context->iface); } else {