inttti=/*frame*SUBFRAMES_PER_SYSTEMFRAME*SLOTNUM_PER_SUBFRAME+*/10*frame+slot;//commented out temporarily to check that compilation of oran 5g is working.
//int32_t flowId;
void*ptr=NULL;
int32_t*pos=NULL;
intidx=0;
staticintprint_tmp=1;
staticintprint_tmp_1=1;
p_xran_dev_ctx_2=xran_dev_get_ctx();
#if 0
if (p_xran_dev_ctx_2 != NULL){
printf("p_xran_dev_ctx_2=%d\n",p_xran_dev_ctx_2);
while(first_call_set!=1){
if(print_tmp){
print_tmp=0;
printf("wait in ru_thread() till first_call_set is set in xran\n");
pos=&ru->rxdataF[ant_id][sym_idx*4096/*fp->ofdm_symbol_size*/];// We had to use a different ru structure than benetel so the access to the buffer is not the same.
pos=(int32_t*)(start_ptr+(4*sym_idx*4096));
uint8_t*u8dptr;
structxran_prb_map*pRbMap=pPrbMap;
...
...
@@ -673,11 +703,9 @@ int xran_fh_rx_read_slot(void *xranlib_, ru_info_t *ru, int frame, int slot){
@@ -735,6 +763,8 @@ int xran_fh_rx_read_slot(void *xranlib_, ru_info_t *ru, int frame, int slot){
}
}
}
return(0);
}
...
...
@@ -750,7 +780,7 @@ int xran_fh_tx_send_slot(void *xranlib_, ru_info_t *ru, int frame, int slot, uin
xranLibWraper*xranlib=((xranLibWraper*)xranlib_);
inttti=/*frame*SUBFRAMES_PER_SYSTEMFRAME*SLOTNUM_PER_SUBFRAME+*/10*frame+slot;//commented out temporarily to check that compilation of oran 5g is working.
inttti=/*frame*SUBFRAMES_PER_SYSTEMFRAME*SLOTNUM_PER_SUBFRAME+*/20*frame+slot;//commented out temporarily to check that compilation of oran 5g is working.
//int32_t flowId;
void*ptr=NULL;
...
...
@@ -767,12 +797,6 @@ int xran_fh_tx_send_slot(void *xranlib_, ru_info_t *ru, int frame, int slot, uin
LOG_E(PHY,"Received Timestamp doesn't correspond to the time we think it is (proc->tti_rx %d, slot %d)\n",proc->tti_rx,*slot);
//exit_fun("Exiting");
}
if(proc->frame_rx!=*frame){
LOG_E(PHY,"Received Timestamp doesn't correspond to the time we think it is (proc->frame_rx %d frame %d proc->tti_rx %d tti %d)\n",proc->frame_rx,*frame,proc->tti_rx,*slot);