From f3aac374272a540d4c8728cfc4d0e0f2891e0f84 Mon Sep 17 00:00:00 2001 From: francescomani Date: Fri, 28 Oct 2022 18:50:19 +0200 Subject: [PATCH] bugfix in delta_tf calculation --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c index 75e152dc37..f7882e85dc 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c @@ -66,8 +66,8 @@ int compute_ph_factor(int mu, int delta_tf = 0; if(deltaMCS != NULL && n_layers == 1) { const int n_re = (NR_NB_SC_PER_RB * n_symbols - n_dmrs) * rb; - const int BPRE = tbs_bits/n_re; //TODO change for PUSCH with CSI - const float f = pow(2, (float) BPRE * 1.25); + const float BPRE = (float) tbs_bits/n_re; //TODO change for PUSCH with CSI + const float f = pow(2, BPRE * 1.25); const float beta = 1.0f; //TODO change for PUSCH with CSI delta_tf = (10 * log10((f - 1) * beta)); }