Commit 2f40c9ff authored by Robert Schmidt's avatar Robert Schmidt

Temporary: makes Benetel work?

parent 835aec37
......@@ -290,18 +290,16 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot){
struct xran_prb_map *pPrbMap = (struct xran_prb_map *)pPrbMapData;
struct xran_prb_elm *pRbElm = &pPrbMap->prbMap[0];
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 (xran_ctx->fh_init.mtu < pRbElm->nRBSize * one_rb_size)
pData = xran_ctx->sFrontHaulRxBbuIoBufCtrl[tti % XRAN_N_FE_BUF_LEN][cc_id][ant_id].sBufferList.pBuffers[sym_idx%XRAN_NUM_OF_SYMBOL_PER_SLOT].pData;
else
pData = p_sec_desc->pData;
pData = xran_ctx->sFrontHaulRxBbuIoBufCtrl[tti % XRAN_N_FE_BUF_LEN][cc_id][ant_id].sBufferList.pBuffers[sym_idx%XRAN_NUM_OF_SYMBOL_PER_SLOT].pData;
//}
ptr = pData;
pos = (int32_t *)(start_ptr + (4*sym_idx*4096));
uint8_t *u8dptr;
struct xran_prb_map *pRbMap = pPrbMap;
if(ptr && pos){
AssertFatal(ptr != NULL, "ptr NULL\n");
AssertFatal(pos != NULL, "pos NULL\n");
if(1){
uint32_t idxElm = 0;
u8dptr = (uint8_t*)ptr;
int16_t payload_len = 0;
......@@ -366,8 +364,8 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot){
}
} else {
exit(-1);
printf("ptr ==NULL\n");
exit(-1);
}
}//sym_ind
}//ant_ind
......@@ -505,8 +503,8 @@ int xran_fh_tx_send_slot(ru_info_t *ru, int frame, int slot, uint64_t timestamp)
pRbMap->tti_id = tti;
} else {
exit(-1);
printf("ptr ==NULL\n");
exit(-1); // fails here??
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment