X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fphy_stub%2Fl1_bdy1.c;h=a7176a54d53d01265339b7092e736eebb5fc44b8;hb=ba2574ac618b40905509604da8d3a2b1b9e39664;hp=7ccee21926f42461d0ca8954f35e86541fd40a7e;hpb=66916eaaf8212d36b38e4dba88bdf159d7637779;p=o-du%2Fl2.git diff --git a/src/phy_stub/l1_bdy1.c b/src/phy_stub/l1_bdy1.c index 7ccee2192..a7176a54d 100644 --- a/src/phy_stub/l1_bdy1.c +++ b/src/phy_stub/l1_bdy1.c @@ -338,12 +338,12 @@ uint16_t l1BuildAndSendCrcInd(uint16_t slot, uint16_t sfn) uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn, fapi_ul_pusch_pdu_t puschPdu) { uint8_t idx = 0; - fapi_rx_data_indication_t *rxDataInd; - fapi_pdu_ind_info_t *pduInfo; + fapi_rx_data_indication_t *rxDataInd =NULLP; + fapi_pdu_ind_info_t *pduInfo =NULLP; uint8_t *pdu = NULLP; uint16_t byteIdx = 0; uint32_t msgLen = 0; - MsgType type; + MsgType type = 0; if(!msg3Sent) { @@ -386,7 +386,7 @@ uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn, fapi_ul_pusch_pdu_ return RFAILED; } memset(rxDataInd, 0, sizeof(fapi_rx_data_indication_t)); - + msgLen = sizeof(fapi_rx_data_indication_t) - sizeof(fapi_msg_t); rxDataInd->sfn = sfn; rxDataInd->slot = slot; @@ -409,7 +409,7 @@ uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn, fapi_ul_pusch_pdu_ printf("\nPHY_STUB: Memory allocation failed for Rx Data Pdu"); return RFAILED; } - + memset(pduInfo->pduData, 0, pduInfo->pdu_length); /* Filling PDU */ pdu = (uint8_t *)pduInfo->pduData; @@ -509,7 +509,7 @@ uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn, fapi_ul_pusch_pdu_ } case MSG_TYPE_RRC_RECONFIG_COMPLETE: { - DU_LOG("\nPHY_STUB: Forming RRC RECONFIGURATION PDU"); + DU_LOG("\nPHY_STUB: Forming RRC RECONFIGURATION COMPLETE PDU"); uint8_t pduLen = 14; /* For rrc reconfig complete where RRC Container is dummy MAC subheader format is R/F/LCId/L (2/3 bytes)