srsue,rrc: check present flag before parsing UCI PUSCH scaling info

master
Andre Puschmann 3 years ago
parent 82429d1742
commit 1b891bb600

@ -1537,9 +1537,11 @@ bool rrc_nr::apply_sp_cell_ded_ul_pusch(const asn1::rrc_nr::pusch_cfg_s& pusch_c
logger.warning("Option beta_offsets not of type semi_static"); logger.warning("Option beta_offsets not of type semi_static");
return false; return false;
} }
if (make_phy_pusch_scaling(pusch_cfg.uci_on_pusch.setup(), &phy_cfg.pusch.scaling) == false) { if (pusch_cfg.uci_on_pusch_present) {
logger.warning("Warning while building scaling structure"); if (make_phy_pusch_scaling(pusch_cfg.uci_on_pusch.setup(), &phy_cfg.pusch.scaling) == false) {
return false; logger.warning("Warning while building scaling structure");
return false;
}
} }
} else { } else {
logger.warning("Option beta_offsets not present"); logger.warning("Option beta_offsets not present");

Loading…
Cancel
Save