mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 08:07:47 +00:00
still return the parent info even if device is router (#1875)
This commit is contained in:
@@ -304,9 +304,6 @@ otError otThreadGetParentInfo(otInstance *aInstance, otRouterInfo *aParentInfo)
|
||||
otError error = OT_ERROR_NONE;
|
||||
Router *parent;
|
||||
|
||||
VerifyOrExit(aInstance->mThreadNetif.GetMle().GetRole() == OT_DEVICE_ROLE_CHILD,
|
||||
error = OT_ERROR_INVALID_STATE);
|
||||
|
||||
VerifyOrExit(aParentInfo != NULL, error = OT_ERROR_INVALID_ARGS);
|
||||
|
||||
parent = aInstance->mThreadNetif.GetMle().GetParent();
|
||||
|
||||
Reference in New Issue
Block a user