handle tx_offset with negative value

This commit is contained in:
Khalid Ahmed
2019-08-23 16:08:56 +02:00
committed by Thomas Schlichter
parent 35b85d456c
commit 2b94608329
@@ -400,6 +400,10 @@ uint8_t nr_ue_pusch_common_procedures(PHY_VARS_NR_UE *UE,
#endif
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;
txdataF = UE->common_vars.txdataF;