diff --git a/src/core/mac/mac_frame.cpp b/src/core/mac/mac_frame.cpp index 8400a194f..9e76da0cd 100644 --- a/src/core/mac/mac_frame.cpp +++ b/src/core/mac/mac_frame.cpp @@ -736,7 +736,7 @@ void Frame::SetFrameCounter(uint32_t aFrameCounter) LittleEndian::WriteUint32(aFrameCounter, &mPsdu[index]); - static_cast(this)->SetIsHeaderUpdated(true); + static_cast(this)->SetIsHeaderUpdated(true); } const uint8_t *Frame::GetKeySource(void) const diff --git a/src/core/thread/mle_tlvs.cpp b/src/core/thread/mle_tlvs.cpp index 8c0ac134b..050e145a6 100644 --- a/src/core/thread/mle_tlvs.cpp +++ b/src/core/thread/mle_tlvs.cpp @@ -59,7 +59,7 @@ bool RouteTlv::IsValid(void) const VerifyOrExit(GetLength() >= sizeof(mRouterIdSequence) + sizeof(mRouterIdMask)); numAllocatedIds = mRouterIdMask.GetNumberOfAllocatedIds(); - VerifyOrExit(numAllocatedIds <= Mle::kMaxRouters); + VerifyOrExit(numAllocatedIds <= kMaxRouters); isValid = (GetRouteDataLength() >= numAllocatedIds);