Reset timing_advance on sync/re-sync

This prevents the UE to use an outdated timing_advance after a re-sync. It prevents the UE to send a PRACH with a wrong TA, thus preventing a RAPID mismatch in Msg2 (example: '[UE 0][RAPROC][0.0] Received RAR preamble (29) doesn't match the intended RAPID (30)')
This commit is contained in:
luis_pereira87
2025-03-06 16:25:42 +00:00
parent 0515cf98b3
commit f765352be7
+2
View File
@@ -970,6 +970,8 @@ void *UE_thread(void *arg)
syncMsg->UE = UE;
memset(&syncMsg->proc, 0, sizeof(syncMsg->proc));
pushNotifiedFIFO(&UE->sync_actor.fifo, Msg);
timing_advance = 0;
UE->timing_advance = 0;
trashed_frames = 0;
syncRunning = true;
continue;