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