fix scan mask issue when reattach to the same partition (#113)

This commit is contained in:
rongli
2016-06-05 19:17:32 -07:00
committed by Jonathan Hui
parent 32361a6a2a
commit 2bf8083670
+6
View File
@@ -850,6 +850,12 @@ ThreadError Mle::SendParentRequest(void)
{
case kParentRequestRouter:
scanMask = ScanMaskTlv::kRouterFlag;
if (mParentRequestMode == kMleAttachSamePartition)
{
scanMask |= ScanMaskTlv::kEndDeviceFlag;
}
break;
case kParentRequestChild: