aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-07-02 13:19:49 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-07-02 13:24:02 +0200
commitbdcfb71161aed1dd882ec7f9dcc4880146175155 (patch)
treefb2925be950dc6fe93c8409bdd3f5e120465f6e5
parent70960fb90cf4ab5efa2851f6927e53bb14878512 (diff)
sba: Reverse TS search order (TODO)
- when using multiple TS the first TS cannot be used for UL eventually if a TBF is still active or releasing. - Currently RACH requests are often accompanied by poll timeouts - This cannot prevent them completely (especially with multiple TRX in the future)
-rw-r--r--src/sba.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sba.cpp b/src/sba.cpp
index 6eec235f..8db057b7 100644
--- a/src/sba.cpp
+++ b/src/sba.cpp
@@ -48,7 +48,7 @@ int SBAController::alloc(
struct gprs_rlcmac_pdch *pdch;
struct gprs_rlcmac_sba *sba;
- uint8_t trx, ts;
+ int8_t trx, ts;
uint32_t fn;
sba = talloc_zero(tall_pcu_ctx, struct gprs_rlcmac_sba);
@@ -56,7 +56,7 @@ int SBAController::alloc(
return -ENOMEM;
for (trx = 0; trx < 8; trx++) {
- for (ts = 0; ts < 8; ts++) {
+ for (ts = 7; ts >= 0; ts--) {
pdch = &m_bts.bts_data()->trx[trx].pdch[ts];
if (!pdch->is_enabled())
continue;