diff --git a/radio/fhi_72/oaioran.c b/radio/fhi_72/oaioran.c index a0aeab7084..bb1b3ebecf 100644 --- a/radio/fhi_72/oaioran.c +++ b/radio/fhi_72/oaioran.c @@ -538,8 +538,7 @@ int xran_fh_tx_send_slot(ru_info_t *ru, int frame, int slot, uint64_t timestamp) } // This loop would better be more inner to avoid confusion and maybe also errors. for (int32_t sym_idx = 0; sym_idx < XRAN_NUM_OF_SYMBOL_PER_SLOT; sym_idx++) { - /* the callback is for mixed and UL slots. In mixed, we have to - * skip DL and guard symbols. */ + /* skip DL and guard symbols. */ if (!is_tdd_ul_symbol(frame_conf, slot, sym_idx)) { continue; } @@ -547,15 +546,18 @@ int xran_fh_tx_send_slot(ru_info_t *ru, int frame, int slot, uint64_t timestamp) uint8_t *pPrbMapData = bufs->dstcp[ant_id % nb_rx_per_ru][tti % XRAN_N_FE_BUF_LEN].pBuffers->pData; struct xran_prb_map *pPrbMap = (struct xran_prb_map *)pPrbMapData; - struct xran_prb_elm *pRbElm = &pPrbMap->prbMap[0]; - - struct xran_prb_map *pRbMap = pPrbMap; - uint32_t idxElm = 0; - - LOG_D(HW, "pRbMap->nPrbElm %d\n", pRbMap->nPrbElm); - for (idxElm = 0; idxElm < pRbMap->nPrbElm; idxElm++) { - LOG_D(HW, "prbMap[%d] : PRBstart %d nPRBs %d\n", idxElm, pRbMap->prbMap[idxElm].nRBStart, pRbMap->prbMap[idxElm].nRBSize); - pRbElm = &pRbMap->prbMap[idxElm]; + LOG_D(HW, "pPrbMap->nPrbElm %d\n", pPrbMap->nPrbElm); + for (uint32_t idxElm = 0; idxElm < pPrbMap->nPrbElm; idxElm++) { + struct xran_prb_elm *pRbElm = &pPrbMap->prbMap[idxElm]; + int numRB, startRB; +#ifdef E_RELEASE + numRB = pRbElm->nRBSize; + startRB = pRbElm->nRBStart; +#elif F_RELEASE + numRB = pRbElm->UP_nRBSize; + startRB = pRbElm->UP_nRBStart; +#endif + LOG_D(HW, "pPrbMap[%d] : PRBstart %d nPRBs %d\n", idxElm, startRB, numRB); if (first) { // ant_id / no of antenna per beam gives the beam_nb pRbElm->nBeamIndex =