Add assert: on Msg3, we cannot have phr_txpower_calc

It is not filled in the Msg3 scheduler.
This commit is contained in:
Robert Schmidt
2026-03-23 12:18:32 +01:00
parent 2ab6b88d64
commit 15ac13e882
@@ -850,6 +850,7 @@ static void nr_rx_ra_sdu(const module_id_t mod_id,
DevAssert(harq_pid >= 0 && harq_pid < 8);
if (ul_cqi != 0xff) {
NR_UE_ul_harq_t *harq = &UE_scheduling_control->ul_harq_processes[harq_pid];
DevAssert(harq->sched_pusch.phr_txpower_calc == 0);
UE_scheduling_control->tpc0 = nr_get_tpc(target_snrx10, ul_cqi, 30, harq->sched_pusch.phr_txpower_calc);
UE_scheduling_control->pusch_snrx10 = ul_cqi * 5 - 640 - harq->sched_pusch.phr_txpower_calc * 10;
}