Remove useless definitions for E&F releases in _BySymbol() functions
Those functions are already encapsulated in #ifdef F_RELEASE condition.
This commit is contained in:
@@ -843,20 +843,8 @@ int xran_fh_rx_read_slot_BySymbol(ru_info_t *ru, int *frame, int *slot)
|
|||||||
struct xran_prb_map *pRbMap = pPrbMap;
|
struct xran_prb_map *pRbMap = pPrbMap;
|
||||||
for (int idxElm = 0; idxElm < pRbMap->nPrbElm; idxElm++) {
|
for (int idxElm = 0; idxElm < pRbMap->nPrbElm; idxElm++) {
|
||||||
struct xran_prb_elm *pRbElm = &pRbMap->prbMap[idxElm];
|
struct xran_prb_elm *pRbElm = &pRbMap->prbMap[idxElm];
|
||||||
#ifdef E_RELEASE
|
|
||||||
struct xran_section_desc *p_sec_desc = pRbElm->p_sec_desc[sym_idx][0];
|
|
||||||
uint32_t one_rb_size =
|
|
||||||
(((pRbElm->iqWidth == 0) || (pRbElm->iqWidth == 16)) ? (N_SC_PER_PRB * 2 * 2) : (3 * pRbElm->iqWidth + 1));
|
|
||||||
if (fh_init->mtu < pRbElm->nRBSize * one_rb_size)
|
|
||||||
pData = bufs->dst[ant_id % nb_rx_per_ru][tti % XRAN_N_FE_BUF_LEN]
|
|
||||||
.pBuffers[sym_idx % XRAN_NUM_OF_SYMBOL_PER_SLOT]
|
|
||||||
.pData;
|
|
||||||
else
|
|
||||||
pData = p_sec_desc->pData;
|
|
||||||
#elif defined F_RELEASE
|
|
||||||
struct xran_section_desc *p_sec_desc = &pRbElm->sec_desc[sym_idx][0];
|
struct xran_section_desc *p_sec_desc = &pRbElm->sec_desc[sym_idx][0];
|
||||||
pData = p_sec_desc->pData;
|
pData = p_sec_desc->pData;
|
||||||
#endif
|
|
||||||
ptr = pData;
|
ptr = pData;
|
||||||
pos = (int32_t *)(start_ptr + (4 * sym_idx * fftsize));
|
pos = (int32_t *)(start_ptr + (4 * sym_idx * fftsize));
|
||||||
if (ptr == NULL || pos == NULL)
|
if (ptr == NULL || pos == NULL)
|
||||||
@@ -1129,11 +1117,7 @@ int xran_fh_tx_send_slot_BySymbol(ru_info_t *ru, int frame, int slot, uint64_t t
|
|||||||
p_prbMapElm->nBeamIndex = 0;
|
p_prbMapElm->nBeamIndex = 0;
|
||||||
|
|
||||||
// assumes one fragment per symbol
|
// assumes one fragment per symbol
|
||||||
#ifdef E_RELEASE
|
|
||||||
p_sec_desc = p_prbMapElm->p_sec_desc[sym_id][0];
|
|
||||||
#elif F_RELEASE
|
|
||||||
p_sec_desc = &p_prbMapElm->sec_desc[sym_id][0];
|
p_sec_desc = &p_prbMapElm->sec_desc[sym_id][0];
|
||||||
#endif
|
|
||||||
|
|
||||||
dst = xran_add_hdr_offset(dst, p_prbMapElm->compMethod);
|
dst = xran_add_hdr_offset(dst, p_prbMapElm->compMethod);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user