From 5b0df1f1c52803ae01c406081efacfdd19a24d4c Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 11 Sep 2017 10:38:59 +0200 Subject: [PATCH] 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 --- tests/alloc/AllocTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index e26c4323..a88f4776 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -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];