Commit 617bf6a1 authored by rmagueta's avatar rmagueta

Set initial_wait=0 and opp_enabled = 0

parent e13ef657
...@@ -1244,13 +1244,13 @@ void *ru_thread( void *param ) { ...@@ -1244,13 +1244,13 @@ void *ru_thread( void *param ) {
int slot = fp->slots_per_frame-1; int slot = fp->slots_per_frame-1;
int frame = 1023; int frame = 1023;
char threadname[40]; char threadname[40];
int initial_wait=1; int initial_wait=0;
int opp_enabled0 = opp_enabled; int opp_enabled0 = opp_enabled;
nfapi_nr_config_request_scf_t *cfg = &ru->config; nfapi_nr_config_request_scf_t *cfg = &ru->config;
// set the timing measurements for startup phase, for RX fronthaul settling measurements, put it to configured value after // set the timing measurements for startup phase, for RX fronthaul settling measurements, put it to configured value after
opp_enabled = 1; opp_enabled = 0;
// set default return value // set default return value
ru_thread_status = 0; ru_thread_status = 0;
...@@ -1364,7 +1364,7 @@ void *ru_thread( void *param ) { ...@@ -1364,7 +1364,7 @@ void *ru_thread( void *param ) {
if (proc->frame_rx>=300) { if (proc->frame_rx>=300) {
initial_wait=0; initial_wait=0;
opp_enabled = opp_enabled0; opp_enabled = opp_enabled0;
} }
if (initial_wait == 0 && ru->rx_fhaul.trials > 1000) reset_meas(&ru->rx_fhaul); if (initial_wait == 0 && ru->rx_fhaul.trials > 1000) reset_meas(&ru->rx_fhaul);
proc->timestamp_tx = proc->timestamp_rx + (sf_ahead*fp->samples_per_subframe); proc->timestamp_tx = proc->timestamp_rx + (sf_ahead*fp->samples_per_subframe);
proc->frame_tx = (proc->tti_rx > (fp->slots_per_frame-1-(fp->slots_per_subframe*sf_ahead))) ? (proc->frame_rx+1)&1023 : proc->frame_rx; proc->frame_tx = (proc->tti_rx > (fp->slots_per_frame-1-(fp->slots_per_subframe*sf_ahead))) ? (proc->frame_rx+1)&1023 : proc->frame_rx;
......
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