#include "common_def.h"
#include "lrg.h"
#ifdef INTEL_FAPI
-#include "fapi.h"
+#include "nr5g_fapi_internal.h"
#include "fapi_vendor_extension.h"
#endif
slotInd->cellId = lwrMacCb.cellCb[0].cellId;
slotInd->sfn = fapiSlotInd->sfn;
slotInd->slot = fapiSlotInd->slot;
-
FILL_PST_LWR_MAC_TO_MAC(pst, EVENT_SLOT_IND_TO_MAC);
pst.selector = ODU_SELECTOR_LWLC;
ret = (*sendSlotIndOpts[pst.selector])(&pst, slotInd);
RachPduInfo *rachPdu = NULLP;
RachInd *rachInd = NULLP;
- MAC_ALLOC_SHRABL_BUF(rachInd, sizeof(RachInd));
- if(!rachInd)
- {
- DU_LOG("\nERROR --> LWR_MAC : Memory Allocation failed in procRachInd");
- return RFAILED;
- }
if(!fapiRachInd->numPdus)
{
DU_LOG("\nDEBUG --> LWR_MAC : No PDU in RACH.indication at [%d, %d]", fapiRachInd->sfn, fapiRachInd->slot);
return ROK;
}
+ MAC_ALLOC_SHRABL_BUF(rachInd, sizeof(RachInd));
+ if(!rachInd)
+ {
+ DU_LOG("\nERROR --> LWR_MAC : Memory Allocation failed in procRachInd");
+ return RFAILED;
+ }
rachInd->cellId = lwrMacCb.cellCb[0].cellId;
rachInd->timingInfo.sfn = fapiRachInd->sfn;
rachInd->timingInfo.slot = fapiRachInd->slot;
}
#endif /* FAPI */
+#ifdef CALL_FLOW_DEBUG_LOG
/*******************************************************************
* @brief Function prints src, dest, msg infor about all the msgs that
received.
}
DU_LOG("\nCall Flow: PHY -> ENTLWRMAC : %s\n",message);
}
+#endif
+
/*******************************************************************
*
* @brief Processes message from PHY
#ifdef CALL_FLOW_DEBUG_LOG
callFlowFromPhyToLwrMac(header->msg_id);
#endif
+
switch(header->msg_id)
{
#ifdef INTEL_TIMER_MODE