X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_rach.c;h=18a6200bf799e1b18aa275c4f8cb12e33053f7e1;hb=3ecca3e4e3a36a7f357a475bd4a938b0ac551e7c;hp=a34642d96358e1b3e7ecd2ef17b61badba50fe57;hpb=2193e4cf01012809495be026097e8d7eacb9f0ac;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_rach.c b/src/5gnrmac/mac_rach.c index a34642d96..18a6200bf 100644 --- a/src/5gnrmac/mac_rach.c +++ b/src/5gnrmac/mac_rach.c @@ -80,7 +80,7 @@ uint8_t fapiMacRachInd(Pst *pst, RachInd *rachInd) uint8_t preambleIdx; RachIndInfo rachIndInfo; - DU_LOG("\nMAC : Received RACH indication"); + DU_LOG("\nINFO --> MAC : Received RACH indication"); /* Considering one pdu and one preamble */ pduIdx = 0; preambleIdx = 0; @@ -92,13 +92,14 @@ uint8_t fapiMacRachInd(Pst *pst, RachInd *rachInd) rachIndInfo.symbolIdx = rachInd->rachPdu[pduIdx].symbolIdx; rachIndInfo.freqIdx = rachInd->rachPdu[pduIdx].freqIdx; rachIndInfo.preambleIdx = \ - rachInd->rachPdu[pduIdx].preamInfo[preambleIdx].preamIdx; + rachInd->rachPdu[pduIdx].preamInfo[preambleIdx].preamIdx; rachIndInfo.timingAdv = \ - rachInd->rachPdu[pduIdx].preamInfo[preambleIdx].timingAdv; + rachInd->rachPdu[pduIdx].preamInfo[preambleIdx].timingAdv; /* storing the value in macRaCb */ createMacRaCb(&rachIndInfo); + MAC_FREE_SHRABL_BUF(pst->region, pst->pool, rachInd, sizeof(RachInd)); return(sendRachIndMacToSch(&rachIndInfo)); }