From a9a6ab367b6bc8adcba3901bb4760d6054b62eb7 Mon Sep 17 00:00:00 2001 From: Thomas Schlichter Date: Thu, 22 May 2025 09:58:22 +0000 Subject: [PATCH] NR UE: fix autonomous_ta to be applied only when we also adjust the DL sync --- executables/nr-ue.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/executables/nr-ue.c b/executables/nr-ue.c index c4237cb914..e7b305c7d2 100644 --- a/executables/nr-ue.c +++ b/executables/nr-ue.c @@ -1097,9 +1097,6 @@ void *UE_thread(void *arg) UE->max_pos_acc = 0; shiftForNextFrame = -(UE->init_sync_frame + trashed_frames + 2) * UE->max_pos_acc * get_nrUE_params()->time_sync_I; // compensate for the time drift that happened during initial sync LOG_D(PHY, "max_pos_acc = %d, shiftForNextFrame = %d\n", UE->max_pos_acc, shiftForNextFrame); - // TODO: remove this autonomous TA and use up-to-date values of ta-Common, ta-CommonDrift and ta-CommonDriftVariant from received SIB19 instead - if (get_nrUE_params()->autonomous_ta) - UE->timing_advance -= 2 * shiftForNextFrame; // read in first symbol AssertFatal(fp->ofdm_symbol_size + fp->nb_prefix_samples0 == UE->rfdevice.trx_read_func(&UE->rfdevice,