bugfix: corrected L2_EV_NET_SETUP_DONE handling.
This commit is contained in:
@@ -963,21 +963,18 @@ int32_t Linklayer_EventHandler(L2_INST *instPtr, const L2_EVENT *l2Event)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG_WARNING("Invalid call from head node.")
|
DBG_WARNING("Invalid call from head node.");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case L2_EV_NET_SETUP_DONE:
|
case L2_EV_NET_SETUP_DONE:
|
||||||
{
|
{
|
||||||
DBG_INFO("Event L2_EV_NETSETUP_DONE asserted....\n");
|
DBG_INFO("Event L2_EV_NET_SETUP_DONE asserted....\n");
|
||||||
if (L2_GetNodeType(instPtr) != L2_NODE_HEAD)
|
if (L2_GetNodeType(instPtr) != L2_NODE_HEAD)
|
||||||
{
|
{
|
||||||
instPtr->cxn2Net = true;
|
instPtr->cxn2Net = true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{ // Head node
|
|
||||||
UpdateMainSate(instPtr, L2_NORMAL_STATE);
|
UpdateMainSate(instPtr, L2_NORMAL_STATE);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case L2_EV_TIME_SYNC:
|
case L2_EV_TIME_SYNC:
|
||||||
|
|||||||
Reference in New Issue
Block a user