From 997790f6562df1fba617209d5c65816803ede3ee Mon Sep 17 00:00:00 2001 From: Thomas Schlichter Date: Thu, 3 Apr 2025 07:31:24 +0000 Subject: [PATCH] NR UE: remove unused nr_slot_tx_offset `nr_slot_tx_offset` is unused since commit f3e60a141747ac12e2c9058e35e64fc5315d2911 --- executables/nr-ue.c | 4 ---- openair1/PHY/defs_nr_UE.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/executables/nr-ue.c b/executables/nr-ue.c index d172255c2f..d9266a3664 100644 --- a/executables/nr-ue.c +++ b/executables/nr-ue.c @@ -964,11 +964,9 @@ void *UE_thread(void *arg) int ntn_koffset = 0; int duration_rx_to_tx = NR_UE_CAPABILITY_SLOT_RX_TO_TX; - int nr_slot_tx_offset = 0; bool update_ntn_system_information = false; while (!oai_exit) { - nr_slot_tx_offset = 0; if (syncRunning) { notifiedFIFO_elt_t *res = pollNotifiedFIFO(&nf); @@ -1096,7 +1094,6 @@ void *UE_thread(void *arg) if (UE->ntn_config_message->update) { UE->ntn_config_message->update = false; update_ntn_system_information = true; - nr_slot_tx_offset = UE->ntn_config_message->ntn_config_params.cell_specific_k_offset << fp->numerology_index; } int slot_nr = absolute_slot % nb_slot_frame; @@ -1200,7 +1197,6 @@ void *UE_thread(void *arg) curMsgTx->writeBlockSize = writeBlockSize; curMsgTx->proc.timestamp_tx = writeTimestamp; curMsgTx->UE = UE; - curMsgTx->proc.nr_slot_tx_offset = nr_slot_tx_offset; int slot = curMsgTx->proc.nr_slot_tx; int slot_and_frame = slot + curMsgTx->proc.frame_tx * UE->frame_parms.slots_per_frame; diff --git a/openair1/PHY/defs_nr_UE.h b/openair1/PHY/defs_nr_UE.h index b1f75e8bb4..f9349f7cd0 100644 --- a/openair1/PHY/defs_nr_UE.h +++ b/openair1/PHY/defs_nr_UE.h @@ -530,10 +530,6 @@ typedef struct { int gNB_id; /// NR slot index within frame_tx [0 .. slots_per_frame - 1] to act upon for transmission int nr_slot_tx; - /// NR slot index tx offset to resume - /// in case of NTN, tx_offset can be changed dynamically via SIB19 - /// we need to notify the right tx thread slot based on TX offset change - int nr_slot_tx_offset; int rx_slot_type; /// NR slot index within frame_rx [0 .. slots_per_frame - 1] to act upon for transmission int nr_slot_rx;