mirror of https://github.com/PentHertz/srsLTE.git
Verify that cell is valid before configuring scell
This commit is contained in:
parent
c7741f368f
commit
4fe68e2d54
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue