Skip to content

sched_ctrlCommon earlier

This MR configures sched_ctrlCommon earlier, in RCconfig_nr_macrlc().

The objective of this MR is to solve the following Assert in the F1 test:

19897952.126019 [NR_MAC] I Adding new UE context with RNTI 0x3269
/oai-ran/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c:366:15: runtime error: member access within null pointer of type 'struct NR_UE_sched_ctrl_t'
[INFO  tini (1)] Spawned child process '/opt/oai-gnb/bin/entrypoint.sh' with pid '7'
[INFO  tini (1)] Main child exited normally (with status '1')

In develop, we had:

  if (gNB_mac->sched_ctrlCommon == NULL){
    ...
    gNB_mac->cset0_bwp_start = type0_PDCCH_CSS_config->cset_start_rb;
    gNB_mac->cset0_bwp_size = type0_PDCCH_CSS_config->num_rbs;
    ...

Since in MAC we only enter here once, I'm assuming this configuration does not depend on the frame or the SSB index.

The configuration is now in RCconfig_nr_macrlc(), because several necessary values ​​are only determined in this function after the line: nr_mac_config_scc(RC.nrmac[j], scc, &config);

Merge request reports

Loading