Commit ba93bbe9 authored by Raymond Knopp's avatar Raymond Knopp

corrected frame_tx calculation in lte-enb.c

parent ac615a4c
...@@ -776,7 +776,7 @@ static void* eNB_thread_rx( void* param ) ...@@ -776,7 +776,7 @@ static void* eNB_thread_rx( void* param )
// we want to generate subframe (n+3), so TS_tx = TX_rx+3*samples_per_tti, // we want to generate subframe (n+3), so TS_tx = TX_rx+3*samples_per_tti,
// and proc->subframe_tx = proc->subframe_rx+3 // and proc->subframe_tx = proc->subframe_rx+3
proc->timestamp_tx = proc->timestamp_rx + (4*fp->samples_per_tti); proc->timestamp_tx = proc->timestamp_rx + (4*fp->samples_per_tti);
proc->frame_tx = (proc->frame_rx > 5) ? (proc->frame_rx+1)&1023 : proc->frame_rx; proc->frame_tx = (proc->subframe_rx > 5) ? (proc->frame_rx+1)&1023 : proc->frame_rx;
proc->subframe_tx = (proc->subframe_rx + 4)%10; proc->subframe_tx = (proc->subframe_rx + 4)%10;
pthread_mutex_unlock( &proc->mutex_tx ); pthread_mutex_unlock( &proc->mutex_tx );
......
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