From e9e78fc3a34804263a9f349cff597f6e6b964378 Mon Sep 17 00:00:00 2001 From: rongli Date: Mon, 5 Jun 2017 01:36:45 +0800 Subject: [PATCH] still return the parent info even if device is router (#1875) --- src/core/api/thread_api.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/api/thread_api.cpp b/src/core/api/thread_api.cpp index e55f88be1..5426b6d1a 100644 --- a/src/core/api/thread_api.cpp +++ b/src/core/api/thread_api.cpp @@ -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();