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

master
Andre Puschmann 5 years ago
parent a95605a8a2
commit 1b1e7ac1a6

@ -850,9 +850,11 @@ 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 {
Error("Leaving SCell %s. cc_idx=%d has not been configured.\n", if (enable) {
scell_cfg[cc_idx].enabled ? "enabled" : "disabled", Error("Leaving SCell %s. cc_idx=%d has not been configured.\n",
cc_idx); scell_cfg[cc_idx].enabled ? "enabled" : "disabled",
cc_idx);
}
} }
} }
} }

Loading…
Cancel
Save