diff --git a/src/core/thread/mle_router_mtd.hpp b/src/core/thread/mle_router_mtd.hpp index 105012aa0..2d7e96d74 100644 --- a/src/core/thread/mle_router_mtd.hpp +++ b/src/core/thread/mle_router_mtd.hpp @@ -73,8 +73,6 @@ public: static bool IsRouterIdValid(uint8_t aRouterId) { return aRouterId <= kMaxRouterId; } otError SendChildUpdateRequest(void) { return Mle::SendChildUpdateRequest(); } - - otError GetMaxChildTimeout(uint32_t &) { return OT_ERROR_NOT_IMPLEMENTED; } }; } // namespace Mle diff --git a/src/core/thread/network_diagnostic.cpp b/src/core/thread/network_diagnostic.cpp index 3fe65221f..81205d1c8 100644 --- a/src/core/thread/network_diagnostic.cpp +++ b/src/core/thread/network_diagnostic.cpp @@ -467,6 +467,7 @@ otError NetworkDiagnostic::FillRequestedTlvs(Message & aRequest, break; } +#if OPENTHREAD_FTD case NetworkDiagnosticTlv::kMaxChildTimeout: { uint32_t maxTimeout = 0; @@ -481,6 +482,7 @@ otError NetworkDiagnostic::FillRequestedTlvs(Message & aRequest, break; } +#endif default: ExitNow(error = OT_ERROR_PARSE);