phy_common: fix getter for nof PRB and ports for NR carriers

This commit is contained in:
Andre Puschmann 2021-07-29 18:15:04 +02:00 committed by Xavier Arteaga
parent c0163d7389
commit 4d9d882d75
1 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,9 @@ public:
if (cc_idx < cell_list_lte.size()) {
ret = cell_list_lte[cc_idx].cell.nof_prb;
} else if (cc_idx == 1 && !cell_list_nr.empty()) {
// for basic NSA config return width of first NR carrier
ret = cell_list_nr[0].carrier.nof_prb;
}
return ret;
@ -81,6 +84,9 @@ public:
if (cc_idx < cell_list_lte.size()) {
ret = cell_list_lte[cc_idx].cell.nof_ports;
} else if (cc_idx == 1 && !cell_list_nr.empty()) {
// one RF port for basic NSA config
ret = 1;
}
return ret;