[mle] do not respond to MLE Parent Requests in detached state (#3295)

This commit is contained in:
Jonathan Hui
2018-11-17 12:04:02 -08:00
committed by GitHub
parent 1fece5f546
commit 2de3258cbd
+3
View File
@@ -1587,6 +1587,9 @@ otError MleRouter::HandleParentRequest(const Message &aMessage, const Ip6::Messa
// A Router MUST NOT send an MLE Parent Response if:
// 0. It is detached or attempting to another partition
VerifyOrExit((mRole != OT_DEVICE_ROLE_DETACHED) && (mAttachState == kAttachStateIdle), error = OT_ERROR_DROP);
// 1. It has no available Child capacity (if Max Child Count minus
// Child Count would be equal to zero)
// ==> verified below when allocating a child entry