dlSlot[dlSchedInfo->schSlotValue.broadcastTime.slot];
currDlSlot->dlInfo.isBroadcastPres = true;
memcpy(&currDlSlot->dlInfo.brdcstAlloc, &dlSchedInfo->brdcstAlloc, sizeof(DlBrdcstAlloc));
+ currDlSlot->dlInfo.brdcstAlloc.sib1Alloc.sib1PdcchCfg.dci.pdschCfg = \
+ &currDlSlot->dlInfo.brdcstAlloc.sib1Alloc.sib1PdschCfg;
}
if(dlSchedInfo->rarAlloc != NULLP)
}
else
{
- DU_LOG("\nMAC: Failed allocating memory for msg4TxPdu");
+ DU_LOG("\nERROR --> MAC: Failed allocating memory for msg4TxPdu");
}
/* Free memory allocated */
MAC_FREE(msg4DlData.pduInfo[0].dlPdu, macCb.macCell[cellIdx]->macRaCb[ueIdx].msg4PduLen);
}
else
{
- DU_LOG("\nMAC: Failed at macMuxPdu()");
+ DU_LOG("\nERROR --> MAC: Failed at macMuxPdu()");
}
}
/*******************************************************************
*
- * @brief Send slot indication to DU APP
+ * @brief Send cell up indication to DU APP
*
* @details
*
- * Function : sendSlotIndMacToDuApp
+ * Function : sendCellUpIndMacToDuApp
*
* Functionality:
- * Send slot indication to DU APP
+ * Send cell up indication to DU APP
*
- * @params[in] Slot indication info
+ * @params[in] Cell Up indication info
* @return ROK - success
* RFAILED - failure
*
* ****************************************************************/
-int sendSlotIndMacToDuApp(SlotIndInfo *slotInd)
+int sendCellUpIndMacToDuApp(uint16_t cellId)
{
Pst pst;
uint16_t ret;
- SlotIndInfo *slotInfo;
+ OduCellId *oduCellId;
/* Allocate sharable memory */
- MAC_ALLOC_SHRABL_BUF(slotInfo, sizeof(SlotIndInfo));
- if(!slotInfo)
+ MAC_ALLOC_SHRABL_BUF(oduCellId, sizeof(OduCellId));
+ if(!oduCellId)
{
- DU_LOG("\nMAC : Slot Indication memory allocation failed");
+ DU_LOG("\nERROR --> MAC : Memory allocation failed for cell up indication");
return RFAILED;
}
-
- slotInfo->cellId = slotInd->cellId;
- slotInfo->sfn = slotInd->sfn;
- slotInfo->slot = slotInd->slot;
+ oduCellId->cellId = cellId;
/* Fill Pst */
- FILL_PST_MAC_TO_DUAPP(pst, EVENT_MAC_SLOT_IND);
+ FILL_PST_MAC_TO_DUAPP(pst, EVENT_MAC_CELL_UP_IND);
- ret = MacDuAppSlotInd(&pst, slotInfo);
+ ret = MacDuAppCellUpInd(&pst, oduCellId);
if(ret != ROK)
{
- DU_LOG("\nMAC: Failed to send slot indication to DU APP");
- MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, slotInfo, sizeof(SlotIndInfo));
+ DU_LOG("\nERROR --> MAC: Failed to send cell up indication to DU APP");
+ MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, oduCellId, sizeof(OduCellId));
}
return ret;
-} /* sendSlotIndMacToDuApp */
+} /* sendCellUpIndMacToDuApp */
/*******************************************************************
*
* ****************************************************************/
uint8_t macProcSlotInd(SlotIndInfo slotInd)
{
- uint16_t cellIdx;
+ uint16_t cellIdx = 0;
GET_CELL_IDX(slotInd.cellId, cellIdx);
volatile uint32_t startTime=0;
#ifdef ODU_SLOT_IND_DEBUG_LOG
- DU_LOG("\nMAC : Slot Indication received");
+ DU_LOG("\nDEBUG --> MAC : Slot Indication received");
#endif
/*starting Task*/
ODU_START_TASK(&startTime, PID_MAC_TTI_IND);
+ gSlotCount++;
/* When testing L2 with Intel-L1, any changes specific to
* timer mode testing must be guarded under INTEL_TIMER_MODE*/
ret = sendSlotIndMacToSch(slotInd);
if(ret != ROK)
{
- DU_LOG("\nMAC : Sending of slot ind msg from MAC to SCH failed");
+ DU_LOG("\nERROR --> MAC : Sending of slot ind msg from MAC to SCH failed");
MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
return ret;
}
ret = macProcSlotInd(*slotInd);
if(ret != ROK)
{
- DU_LOG("\nMAC : macProcSlotInd failed");
+ DU_LOG("\nERROR --> MAC : macProcSlotInd failed");
MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
return ret;
}
#endif
/* send slot indication to du app */
- ret = sendSlotIndMacToDuApp(slotInd);
- if(ret != ROK)
+ if(gSlotCount == 1)
{
- DU_LOG("\nMAC :Sending of slot ind msg from MAC to DU APP failed");
- MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
- return ret;
+ ret = sendCellUpIndMacToDuApp(slotInd->cellId);
+ if(ret != ROK)
+ {
+ DU_LOG("\nERROR --> MAC :Sending of slot ind msg from MAC to DU APP failed");
+ MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo));
+ return ret;
+ }
}
/*stoping Task*/