X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_rach.c;h=246e02ba4b36e7203ebb9b1a918a45bf8daecc2a;hb=50aa3f9538e700074800c809f226760079e68d4a;hp=f2d0a71e867b9a89b9dbcb3dd68e4f4e0dc956bc;hpb=b490cd1231cfcc837e8bfccc40c6bb106dceef7c;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_rach.c b/src/5gnrmac/mac_rach.c index f2d0a71e8..246e02ba4 100644 --- a/src/5gnrmac/mac_rach.c +++ b/src/5gnrmac/mac_rach.c @@ -28,6 +28,7 @@ #include "cm_lte.h" /* Common LTE Defines */ #include "tfu.h" /* RGU Interface includes */ #include "lrg.h" + #include "gen.x" /* general */ #include "ssi.x" /* system services */ #include "cm5.x" /* system services */ @@ -51,7 +52,6 @@ MacSchRachIndFunc macSchRachIndOpts[]= packMacSchRachInd }; - /******************************************************************* * * @brief Sends RACH indication to SCH @@ -77,7 +77,7 @@ int sendRachIndMacToSch(RachIndInfo *rachInd) return(*macSchRachIndOpts[pst.selector])(&pst, rachInd); } - + /******************************************************************* * * @brief Processes RACH indication from PHY @@ -115,7 +115,7 @@ uint16_t fapiMacRachInd(Pst *pst, RachInd *rachInd) rachIndInfo->timingInfo.slot = rachInd->timingInfo.slot; rachIndInfo->slotIdx = rachInd->rachPdu[pduIdx].slotIdx; rachIndInfo->symbolIdx = rachInd->rachPdu[pduIdx].symbolIdx; - rachIndInfo->frequencyIdx = rachInd->rachPdu[pduIdx].freqIdx; + rachIndInfo->freqIdx = rachInd->rachPdu[pduIdx].freqIdx; rachIndInfo->preambleIdx = \ rachInd->rachPdu[pduIdx].preamInfo[preambleIdx].preamIdx; rachIndInfo->timingAdv = \ @@ -124,7 +124,6 @@ uint16_t fapiMacRachInd(Pst *pst, RachInd *rachInd) return(sendRachIndMacToSch(rachIndInfo)); } - /* spec-38.211 Table 6.3.3.1-7 */ uint8_t UnrestrictedSetNcsTable[MAX_ZERO_CORR_CFG_IDX] = {0, 2, 4, 6, 8, 10, 12, 13, 15, 17, 19, 23, 27, 34, 46, 69};