|
|
@ -69,13 +69,20 @@ public:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint32_t ret = 0;
|
|
|
|
uint32_t ret = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cc_idx >= get_nof_carriers()) {
|
|
|
|
|
|
|
|
// invalid CC index
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (cc_idx < cell_list_lte.size()) {
|
|
|
|
if (cc_idx < cell_list_lte.size()) {
|
|
|
|
ret = cell_list_lte[cc_idx].cell.nof_prb;
|
|
|
|
ret = cell_list_lte[cc_idx].cell.nof_prb;
|
|
|
|
} else if (cc_idx == 1 && !cell_list_nr.empty()) {
|
|
|
|
} else if (cc_idx >= cell_list_lte.size()) {
|
|
|
|
// for basic NSA config return width of first NR carrier
|
|
|
|
// offset CC index by all LTE carriers
|
|
|
|
ret = cell_list_nr[0].carrier.nof_prb;
|
|
|
|
cc_idx -= cell_list_lte.size();
|
|
|
|
|
|
|
|
if (cc_idx < cell_list_nr.size()) {
|
|
|
|
|
|
|
|
ret = cell_list_nr[cc_idx].carrier.nof_prb;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
return ret;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
uint32_t get_nof_ports(uint32_t cc_idx)
|
|
|
|
uint32_t get_nof_ports(uint32_t cc_idx)
|
|
|
|