Add possible band when invalid band is given

This commit is contained in:
Xavier Arteaga 2021-10-06 17:03:54 +02:00 committed by Ismael Gomez
parent 546f637f91
commit b060c3deca
1 changed files with 11 additions and 0 deletions

View File

@ -1022,6 +1022,17 @@ static int parse_nr_cell_list(all_args_t* args, rrc_nr_cfg_t* rrc_cfg_nr, rrc_cf
}
}
if (!dl_arfcn_valid) {
if (not bands.empty()) {
std::stringstream ss;
for (uint32_t& band : bands) {
ss << band << " ";
}
ERROR("DL ARFCN (%d) does not belong to band (%d). Recommended bands: %s",
it->dl_arfcn,
it->band,
ss.str().c_str());
return SRSRAN_ERROR;
}
ERROR("DL ARFCN (%d) is not valid for the specified band (%d)", it->dl_arfcn, it->band);
return SRSRAN_ERROR;
}