FlexRAN: Handle enb_config_reply reconfiguration message

This commit is contained in:
Robert Schmidt
2018-09-03 18:10:28 +02:00
parent 3d8586a5bf
commit 3a78d85f5e
3 changed files with 28 additions and 1 deletions
+20
View File
@@ -1101,5 +1101,25 @@ int flexran_agent_destroy_rrc_measurement(Protocol__FlexranMessage *msg){
return 0;
}
int flexran_agent_handle_enb_config_reply(mid_t mod_id, const void *params, Protocol__FlexranMessage **msg)
{
Protocol__FlexranMessage *input = (Protocol__FlexranMessage *)params;
Protocol__FlexEnbConfigReply *enb_config = input->enb_config_reply_msg;
if (enb_config->n_cell_config == 0) {
LOG_W(FLEXRAN_AGENT,
"received enb_config_reply message does not contain a cell_config\n");
*msg = NULL;
return 0;
}
if (enb_config->n_cell_config > 1)
LOG_W(FLEXRAN_AGENT, "ignoring slice configs for other cell except cell 0\n");
if (enb_config->cell_config[0]->slice_config)
prepare_update_slice_config(mod_id, enb_config->cell_config[0]->slice_config);
/* could test for cell configs here and maybe reconfigure/soft-restart */
*msg = NULL;
return 0;
}