From 3d5edef27e4d8bf6a6253bc421b18c1a307a9605 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Fri, 31 Oct 2025 19:20:44 +0100 Subject: [PATCH] Remove unused PH factor calculation The same calculation is done in post_process_ulsch(), so we don't need it here. --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c index f5c07838da..8f5fe57d94 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c @@ -2275,19 +2275,6 @@ static int pf_ul(gNB_MAC_INST *nrmac, >> 3; } - // Calacualte the normalized tx_power for PHR - long *deltaMCS = current_BWP->pusch_Config ? current_BWP->pusch_Config->pusch_PowerControl->deltaMCS : NULL; - int tbs_bits = sched.tb_size << 3; - - sched.phr_txpower_calc = compute_ph_factor(current_BWP->scs, - tbs_bits, - sched.rbSize, - sched.nrOfLayers, - sched.tda_info.nrOfSymbols, - sched.dmrs_info.N_PRB_DMRS * sched.dmrs_info.num_dmrs_symb, - deltaMCS, - false); - LOG_D(NR_MAC, "rbSize %d (available_rb %d), TBS %d, est buf %d, sched_ul %d, B %d, CCE %d, num_dmrs_symb %d, N_PRB_DMRS %d\n", sched.rbSize,