mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 21:57:47 +00:00
[ncp] do not check local network data lock when adding joiners (#2459)
Signed-off-by: Duda, Lukasz <[email protected]>
This commit is contained in:
committed by
Jonathan Hui
parent
1bb458214c
commit
daad2be64c
@@ -429,8 +429,6 @@ otError NcpBase::InsertPropertyHandler_THREAD_JOINERS(void)
|
||||
const char *aPSKd = NULL;
|
||||
uint32_t joinerTimeout = 0;
|
||||
|
||||
VerifyOrExit(mAllowLocalNetworkDataChange == true, error = OT_ERROR_INVALID_STATE);
|
||||
|
||||
SuccessOrExit(error = mDecoder.ReadUtf8(aPSKd));
|
||||
SuccessOrExit(error = mDecoder.ReadUint32(joinerTimeout));
|
||||
|
||||
@@ -439,13 +437,11 @@ otError NcpBase::InsertPropertyHandler_THREAD_JOINERS(void)
|
||||
eui64 = NULL;
|
||||
}
|
||||
|
||||
|
||||
error = otCommissionerAddJoiner(mInstance, eui64, aPSKd, joinerTimeout);
|
||||
|
||||
exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
#endif // OPENTHREAD_ENABLE_COMMISSIONER
|
||||
|
||||
otError NcpBase::SetPropertyHandler_THREAD_LOCAL_LEADER_WEIGHT(void)
|
||||
|
||||
Reference in New Issue
Block a user