mirror of https://github.com/PentHertz/srsLTE.git
bugfix, sched: avoid compilation issue due to uninitialized variable access
This commit is contained in:
parent
329cf02cd0
commit
c75777c618
|
@ -390,7 +390,6 @@ uint32_t get_aggr_level(uint32_t nof_bits,
|
||||||
bool use_tbs_index_alt)
|
bool use_tbs_index_alt)
|
||||||
{
|
{
|
||||||
float max_coderate = srsran_cqi_to_coderate(dl_cqi, use_tbs_index_alt);
|
float max_coderate = srsran_cqi_to_coderate(dl_cqi, use_tbs_index_alt);
|
||||||
float coderate;
|
|
||||||
float factor = 1.5;
|
float factor = 1.5;
|
||||||
uint32_t l_max = 3;
|
uint32_t l_max = 3;
|
||||||
if (cell_nof_prb == 6) {
|
if (cell_nof_prb == 6) {
|
||||||
|
@ -400,6 +399,7 @@ uint32_t get_aggr_level(uint32_t nof_bits,
|
||||||
l_max = SRSRAN_MIN(max_aggr_lvl, l_max);
|
l_max = SRSRAN_MIN(max_aggr_lvl, l_max);
|
||||||
|
|
||||||
uint32_t l = min_aggr_lvl;
|
uint32_t l = min_aggr_lvl;
|
||||||
|
float coderate = 0;
|
||||||
for (; l <= l_max; ++l) {
|
for (; l <= l_max; ++l) {
|
||||||
coderate = srsran_pdcch_coderate(nof_bits, l);
|
coderate = srsran_pdcch_coderate(nof_bits, l);
|
||||||
if (factor * coderate <= max_coderate) {
|
if (factor * coderate <= max_coderate) {
|
||||||
|
|
Loading…
Reference in New Issue