enb: fix error log when parsing cell config

This commit is contained in:
Andre Puschmann 2020-10-26 10:18:58 +01:00
parent 41e3bc5eaf
commit ff21d9c077
1 changed files with 7 additions and 3 deletions

View File

@ -802,11 +802,15 @@ int parse_cell_cfg(all_args_t* args_, srslte_cell_t* cell)
cell->phich_resources = (srslte_phich_r_t)(int)phichcfg.phich_res;
if (!srslte_cell_isvalid(cell)) {
fprintf(stderr, "Invalid cell parameters: nof_prb=%d, cell_id=%d\n", args_->enb.n_prb, args_->stack.s1ap.cell_id);
return -1;
fprintf(stderr,
"Invalid cell parameters: nof_prb=%d, nof_ports=%d, cell_id=%d\n",
cell->nof_prb,
cell->nof_ports,
cell->id);
return SRSLTE_ERROR;
}
return 0;
return SRSLTE_SUCCESS;
}
int parse_cfg_files(all_args_t* args_, rrc_cfg_t* rrc_cfg_, phy_cfg_t* phy_cfg_)