only print error when trying to enable non-existing carrier in UE

master
Andre Puschmann 5 years ago
parent a95605a8a2
commit 1b1e7ac1a6

@ -850,11 +850,13 @@ void phy_common::enable_scell(uint32_t cc_idx, bool enable)
if (scell_cfg[cc_idx].configured) { if (scell_cfg[cc_idx].configured) {
scell_cfg[cc_idx].enabled = enable; scell_cfg[cc_idx].enabled = enable;
} else { } else {
if (enable) {
Error("Leaving SCell %s. cc_idx=%d has not been configured.\n", Error("Leaving SCell %s. cc_idx=%d has not been configured.\n",
scell_cfg[cc_idx].enabled ? "enabled" : "disabled", scell_cfg[cc_idx].enabled ? "enabled" : "disabled",
cc_idx); cc_idx);
} }
} }
} }
}
} // namespace srsue } // namespace srsue

Loading…
Cancel
Save