ue,rrc: fail NR reconfiguration if mac-logicalChannelConfig is not present

This commit is contained in:
Andre Puschmann 2021-08-05 13:04:08 +02:00
parent 2e9f487ebc
commit fc2b6a7fb5
1 changed files with 6 additions and 3 deletions

View File

@ -456,17 +456,17 @@ bool rrc_nr::apply_rlc_add_mod(const rlc_bearer_cfg_s& rlc_bearer_cfg)
add_lcid_drb(lc_ch_id, drb_id);
}
} else {
logger.warning("In RLC bearer cfg does not contain served radio bearer");
logger.error("In RLC bearer cfg does not contain served radio bearer");
return false;
}
if (rlc_bearer_cfg.rlc_cfg_present == true) {
if (srsran::make_rlc_config_t(rlc_bearer_cfg.rlc_cfg, &rlc_cfg) != SRSRAN_SUCCESS) {
logger.warning("Failed to build RLC config");
logger.error("Failed to build RLC config");
return false;
}
} else {
logger.warning("In RLC bearer cfg does not contain rlc cfg");
logger.error("In RLC bearer cfg does not contain rlc cfg");
return false;
}
@ -477,6 +477,9 @@ bool rrc_nr::apply_rlc_add_mod(const rlc_bearer_cfg_s& rlc_bearer_cfg)
logical_channel_config_t logical_channel_cfg;
logical_channel_cfg = srsran::make_mac_logical_channel_cfg_t(lc_ch_id, rlc_bearer_cfg.mac_lc_ch_cfg);
mac->setup_lcid(logical_channel_cfg);
} else {
logger.error("Bearer config for LCID %d does not contain mac-LogicalChannelConfig.", lc_ch_id);
return false;
}
return true;
}