From 9ff0f8834e5a869eeee942619cb0408d3f82c876 Mon Sep 17 00:00:00 2001 From: Handa Wang Date: Thu, 15 May 2025 12:48:30 +0800 Subject: [PATCH] [meshcop] fix the build when Border Agent ID is disabled (#11498) --- src/core/meshcop/border_agent.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/meshcop/border_agent.hpp b/src/core/meshcop/border_agent.hpp index cfcef693f..19521088f 100644 --- a/src/core/meshcop/border_agent.hpp +++ b/src/core/meshcop/border_agent.hpp @@ -648,7 +648,10 @@ DeclareTmfHandler(BorderAgent, kUriRelayRx); } // namespace MeshCoP +#if OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE DefineCoreType(otBorderAgentId, MeshCoP::BorderAgent::Id); +#endif + DefineCoreType(otBorderAgentSessionIterator, MeshCoP::BorderAgent::SessionIterator); #if OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE