Verify that cell is valid before configuring scell

This commit is contained in:
Ismael Gomez 2020-03-24 11:52:45 +01:00 committed by Andre Puschmann
parent c7741f368f
commit 4fe68e2d54
2 changed files with 8 additions and 1 deletions

View File

@ -133,7 +133,7 @@ bool cc_worker::set_cell(srslte_cell_t cell_)
cell = cell_;
if (srslte_ue_dl_set_cell(&ue_dl, cell)) {
Error("Initiating UE DL\n");
Error("Setting ue_dl cell\n");
return false;
}

View File

@ -437,6 +437,13 @@ void phy::set_config(srslte::phy_cfg_t& config_, uint32_t cc_idx, uint32_t earfc
return;
}
// Disable cell_info if configuration has not been set
if (cell_info) {
if (!srslte_cell_isvalid(cell_info)) {
cell_info = nullptr;
}
}
// Component carrier index zero should be reserved for PCell
if (cc_idx < args.nof_carriers) {
// Send configuration to workers