Commit f6c6fd3d authored by Laurent THOMAS's avatar Laurent THOMAS

NR_SHORT_BSR_TABLE

parent 7db7ae5d
...@@ -130,7 +130,7 @@ static int estimate_ul_buffer_short_bsr(const NR_BSR_SHORT *bsr) ...@@ -130,7 +130,7 @@ static int estimate_ul_buffer_short_bsr(const NR_BSR_SHORT *bsr)
* differentiate them */ * differentiate them */
int rep_idx = bsr->Buffer_size; int rep_idx = bsr->Buffer_size;
int estim_idx = overestim_bsr_index(rep_idx); int estim_idx = overestim_bsr_index(rep_idx);
int max = sizeofArray(NR_SHORT_BSR_TABLE); int max = sizeofArray(NR_SHORT_BSR_TABLE)-1;
int idx = min(estim_idx, max); int idx = min(estim_idx, max);
int estim_size = NR_SHORT_BSR_TABLE[idx]; int estim_size = NR_SHORT_BSR_TABLE[idx];
LOG_D(NR_MAC, "short BSR LCGID %d index %d estim index %d size %d\n", bsr->LcgID, rep_idx, estim_idx, estim_size); LOG_D(NR_MAC, "short BSR LCGID %d index %d estim index %d size %d\n", bsr->LcgID, rep_idx, estim_idx, estim_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment