aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac_ts_alloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gprs_rlcmac_ts_alloc.cpp')
-rw-r--r--src/gprs_rlcmac_ts_alloc.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp
index 57197b2..df65767 100644
--- a/src/gprs_rlcmac_ts_alloc.cpp
+++ b/src/gprs_rlcmac_ts_alloc.cpp
@@ -383,8 +383,11 @@ static int tfi_find_free(BTS *bts, const GprsMs *ms,
int tfi;
uint8_t trx_no;
- if (use_trx == -1 && ms->current_trx())
+ LOGP(DRLCMAC, LOGL_DEBUG, " USE trx = %d \n",use_trx);
+ if (use_trx == -1 && ms->current_trx()) {
use_trx = ms->current_trx()->trx_no;
+ LOGP(DRLCMAC, LOGL_DEBUG, " MS alive = %d \n",use_trx);
+ }
tfi = bts->tfi_find_free(dir, &trx_no, use_trx);
if (tfi < 0)
@@ -393,6 +396,8 @@ static int tfi_find_free(BTS *bts, const GprsMs *ms,
if (trx_no_)
*trx_no_ = trx_no;
+ LOGP(DRLCMAC, LOGL_DEBUG, " TREE trx = %d TFI = %d\n", *trx_no_, tfi);
+
return tfi;
}
@@ -479,6 +484,7 @@ int alloc_algorithm_a(struct gprs_rlcmac_bts *bts,
}
tbf_->trx = trx;
+ trx->current_load++;
/* the only one TS is the common TS */
tbf_->first_ts = tbf_->first_common_ts = ts;
ms_->set_reserved_slots(trx, 1 << ts, 1 << ts);
@@ -1000,6 +1006,7 @@ int alloc_algorithm_b(struct gprs_rlcmac_bts *bts,
if (!(dl_slots & (1 << ts)))
continue;
+ trx->current_load++;
LOGP(DRLCMAC, LOGL_DEBUG, "- Assigning DL TS "
"%d\n", ts);
assign_dlink_tbf(&trx->pdch[ts], dl_tbf, tfi);
@@ -1012,6 +1019,7 @@ int alloc_algorithm_b(struct gprs_rlcmac_bts *bts,
continue;
OSMO_ASSERT(usf[ts] >= 0);
+ trx->current_load++;
LOGP(DRLCMAC, LOGL_DEBUG, "- Assigning UL TS "
"%d\n", ts);