[mle] simplify MLE StatusTlv (#12064)

This commit simplifies the `StatusTlv` definitions. It introduces a
new `Status` enum representing the the MLE status values.
This commit is contained in:
Abtin Keshavarzian
2025-10-27 10:30:28 -07:00
committed by GitHub
parent ed0a6d46a5
commit 9520760ff1
5 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -2488,7 +2488,7 @@ void Mle::HandleChildUpdateResponseOnParent(RxInfo &aRxInfo)
switch (Tlv::Find<StatusTlv>(aRxInfo.mMessage, status))
{
case kErrorNone:
VerifyOrExit(status != StatusTlv::kError, RemoveNeighbor(*child));
VerifyOrExit(status != kStatusError, RemoveNeighbor(*child));
break;
case kErrorNotFound:
break;
@@ -3029,7 +3029,7 @@ void Mle::SendChildUpdateResponseToChild(Child *aChild,
switch (tlvType)
{
case Tlv::kStatus:
SuccessOrExit(error = message->AppendStatusTlv(StatusTlv::kError));
SuccessOrExit(error = message->AppendStatusTlv(kStatusError));
break;
case Tlv::kLeaderData: