diff options
author | Max <msuraev@sysmocom.de> | 2017-09-11 10:38:59 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-09-12 11:58:29 +0200 |
commit | 5b0df1f1c52803ae01c406081efacfdd19a24d4c (patch) | |
tree | 9ae6a48b5154d5d83638cd59b3df0ae4a1a3b004 /tests | |
parent | 5759a19020cb35b7b8091b387aec448eb1f67a32 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/alloc/AllocTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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]; |