diff --git a/openair1/SCHED/phy_procedures_lte_eNb.c b/openair1/SCHED/phy_procedures_lte_eNb.c index 4601781e680f8f0b84323523ee5513d762f23f81..de44777c3301e4b0079cf5fef653a40f711bb36c 100755 --- a/openair1/SCHED/phy_procedures_lte_eNb.c +++ b/openair1/SCHED/phy_procedures_lte_eNb.c @@ -2512,12 +2512,14 @@ void phy_procedures_eNB_common_RX(PHY_VARS_eNB *eNB,const uint8_t abstraction_fl fp->nb_antennas_rx); proc->frame_rx = (proc->timestamp_rx / (fp->samples_per_tti*10))&1023; proc->subframe_rx = (proc->timestamp_rx / fp->samples_per_tti)%10; + /* printf("Frame %d, subframe %d : TS %lu => %d,%d (rxs %d)\n", + frame,subframe,proc->timestamp_rx,proc->frame_rx,proc->subframe_rx,rxs);*/ if (proc->first_rx == 0) { AssertFatal(proc->subframe_rx == subframe, "Received Timestamp doesn't correspond to the time we think it is (proc->subframe_rx %d, subframe %d)",proc->subframe_rx,subframe); AssertFatal(proc->frame_rx == frame, "Received Timestamp doesn't correspond to the time we think it is (proc->frame_rx %d frame %d)",proc->frame_rx,frame); } else - proc->first_rx = 0; + proc->first_rx--;// = 0; // printf("timestamp_rx %lu, frame %d(%d), subframe %d(%d)\n",proc->timestamp_rx,proc->frame_rx,frame,proc->subframe_rx,subframe); diff --git a/targets/RT/USER/lte-enb.c b/targets/RT/USER/lte-enb.c index 373a13e1503e98d46cebcdf3c46c1f33325790fa..7ab31098d2f8916bd5596ff5b945dd63038648c0 100644 --- a/targets/RT/USER/lte-enb.c +++ b/targets/RT/USER/lte-enb.c @@ -1045,7 +1045,7 @@ void init_eNB_proc(void) proc->instance_cnt_prach = -1; proc->CC_id = CC_id; - proc->first_rx=1; + proc->first_rx=4; pthread_mutex_init( &proc_rxtx[0].mutex_rxtx, NULL); pthread_mutex_init( &proc_rxtx[1].mutex_rxtx, NULL);