X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_handle_phy.c;h=a8f251ca235247e6c83aecdb726c8e2ef08aa334;hb=836efc088282ad7c9dadcdae0bccfdf0774652ab;hp=bce5ed4d4a40582991823cd5e57d192863b5f4ec;hpb=15cfc9c3834a5c77b0cfbbe8b6cb0c576db140e6;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_handle_phy.c b/src/5gnrmac/lwr_mac_handle_phy.c index bce5ed4d4..a8f251ca2 100644 --- a/src/5gnrmac/lwr_mac_handle_phy.c +++ b/src/5gnrmac/lwr_mac_handle_phy.c @@ -114,7 +114,6 @@ uint8_t procSlotInd(fapi_slot_ind_t *fapiSlotInd) 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); @@ -188,18 +187,18 @@ uint8_t procRachInd(fapi_rach_indication_t *fapiRachInd) 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; @@ -534,6 +533,7 @@ void callFlowFromPhyToLwrMac(uint16_t msgId) } DU_LOG("\nCall Flow: PHY -> ENTLWRMAC : %s\n",message); } + /******************************************************************* * * @brief Processes message from PHY @@ -559,6 +559,7 @@ void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg) #ifdef CALL_FLOW_DEBUG_LOG callFlowFromPhyToLwrMac(header->msg_id); #endif + switch(header->msg_id) { #ifdef INTEL_TIMER_MODE