[mle] remove MleRouter class definition under MTD build (#9610)

This commit is contained in:
Abtin Keshavarzian
2023-11-15 23:23:41 -08:00
committed by GitHub
parent 5c34ca2cc3
commit 7d41c9e27a
5 changed files with 34 additions and 28 deletions
+12 -1
View File
@@ -395,7 +395,18 @@ otError otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
uint16_t otThreadGetVersion(void) { return kThreadVersion; }
bool otThreadIsSingleton(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mle::MleRouter>().IsSingleton(); }
bool otThreadIsSingleton(otInstance *aInstance)
{
bool isSingleton = false;
#if OPENTHREAD_FTD
isSingleton = AsCoreType(aInstance).Get<Mle::MleRouter>().IsSingleton();
#else
OT_UNUSED_VARIABLE(aInstance);
#endif
return isSingleton;
}
otError otThreadDiscover(otInstance *aInstance,
uint32_t aScanChannels,