mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 05:37:46 +00:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user