*bugfix: correct head node default cxn2Net value
This commit is contained in:
@@ -589,7 +589,7 @@ int32_t Linklayer_Reconfig(L2_INST *instPtr, const L2_CONFIG *config)
|
||||
instPtr->rtneConfig.last = NULL;
|
||||
instPtr->rtneConfig.curr = NULL;
|
||||
instPtr->rtneConfig.next = NULL;
|
||||
instPtr->cxn2Net = false;
|
||||
instPtr->cxn2Net = (config->myType == L2_NODE_HEAD) ? true : false;
|
||||
instPtr->dataAvail = false;
|
||||
instPtr->frameNum.last = 0;
|
||||
instPtr->frameNum.curr = 0;
|
||||
@@ -1050,7 +1050,7 @@ int32_t Linklayer_Proc(L2_INST *instPtr)
|
||||
instPtr->linkLog.tuNum = instPtr->frameNum.curr;
|
||||
instPtr->linkLog.slotNum = (uint8_t)instPtr->slotNum.curr;
|
||||
instPtr->linkLog.nodeType = (L2_GetNodeType(instPtr) == L2_NODE_HEAD) ? 0xAA : 0xCC;
|
||||
instPtr->linkLog.cxnStatus = (instPtr->cxn2Net) ? 0x11 : 0x00;
|
||||
instPtr->linkLog.cxnStatus = (L2_isCxn2Net(instPtr)) ? 0x11 : 0x00;
|
||||
instPtr->linkLog.linkStage = (instPtr->mainState == L2_INIT_STATE) ? 0x11 : 0x22;
|
||||
instPtr->linkLog.recxnCnt = instPtr->log.reconnectCnt;
|
||||
instPtr->linkLog.beamNo = instPtr->scanFSM->beamNo;
|
||||
|
||||
Reference in New Issue
Block a user