handle tx_offset with negative value
This commit is contained in:
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
|
#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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user