Commit f58ff554 authored by Khalid Ahmed's avatar Khalid Ahmed Committed by Thomas Schlichter

handle tx_offset with negative value

parent 194fa050
...@@ -401,6 +401,10 @@ uint8_t nr_ue_pusch_common_procedures(PHY_VARS_NR_UE *UE, ...@@ -401,6 +401,10 @@ uint8_t nr_ue_pusch_common_procedures(PHY_VARS_NR_UE *UE,
#endif #endif
tx_offset = slot*frame_parms->samples_per_slot - timing_advance; tx_offset = slot*frame_parms->samples_per_slot - timing_advance;
if (tx_offset < 0)
tx_offset += frame_parms->samples_per_frame;
txdata = UE->common_vars.txdata; txdata = UE->common_vars.txdata;
txdataF = UE->common_vars.txdataF; txdataF = UE->common_vars.txdataF;
......
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