Merge "cleanup of BuildAndSendUESetReq"
[o-du/l2.git] / src / 5gnrmac / mac_rach.c
index f2d0a71..246e02b 100644 (file)
@@ -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};