mirror of https://github.com/PentHertz/srsLTE.git
Fixed bug in get_required_nprb_ul
This commit is contained in:
parent
c66f5fc570
commit
6029d25214
|
@ -635,7 +635,7 @@ uint32_t sched_ue::get_required_prb_ul(uint32_t req_bytes)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (n=1;n<=cell.nof_prb && nbytes < req_bytes + 4;n++) {
|
for (n=1;n<cell.nof_prb && nbytes < req_bytes + 4;n++) {
|
||||||
uint32_t nof_re = (2*(SRSLTE_CP_NSYMB(cell.cp)-1) - N_srs)*n*SRSLTE_NRE;
|
uint32_t nof_re = (2*(SRSLTE_CP_NSYMB(cell.cp)-1) - N_srs)*n*SRSLTE_NRE;
|
||||||
int tbs = 0;
|
int tbs = 0;
|
||||||
if (fixed_mcs_ul < 0) {
|
if (fixed_mcs_ul < 0) {
|
||||||
|
@ -648,7 +648,7 @@ uint32_t sched_ue::get_required_prb_ul(uint32_t req_bytes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (!srslte_dft_precoding_valid_prb(n)) {
|
while (!srslte_dft_precoding_valid_prb(n) && n<=cell.nof_prb) {
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue