TS alloc: properly count UL slots

Add cycle to mark multiple allocated UL slots similar to the way we
count DL slots in AllocTest. Until multislot UL allocation is
implemented it does not affect test output.

Change-Id: I2705405119421da3066c6c6bdd5830df4c133a36
Related: OS#2282
This commit is contained in:
Max 2017-09-11 10:38:59 +02:00
parent 5759a19020
commit 5b0df1f1c5
1 changed files with 4 additions and 0 deletions

View File

@ -602,6 +602,10 @@ static unsigned alloc_many_tbfs(BTS *the_bts, unsigned min_class,
if (dl_tbf->pdch[i])
dl_slots |= 1 << i;
for (i = 0; ul_tbf && i < ARRAY_SIZE(ul_tbf->pdch); i += 1)
if (ul_tbf->pdch[i])
ul_slots |= 1 << i;
for (i = 0; trx && i < ARRAY_SIZE(trx->pdch); i += 1) {
struct gprs_rlcmac_pdch *pdch = &trx->pdch[i];