aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac_data.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-08-24 21:16:55 +0200
committerIvan Kluchnikov <kluchnikovi@gmail.com>2013-10-02 18:08:31 +0400
commitd6bd91e4e596f5a16c53307635fef48e1324070d (patch)
treea674d39c9adbcf91b3f92db283821080b259ff6d /src/gprs_rlcmac_data.cpp
parent9d938388f678e8c753e128199185f17a35a45247 (diff)
tfi: The tfi_alloc doesn't allocate anything, rename the function
Call things by what they do and this function doesn't allocate anything but it is searching for the first unallocated tbf index.
Diffstat (limited to 'src/gprs_rlcmac_data.cpp')
-rw-r--r--src/gprs_rlcmac_data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs_rlcmac_data.cpp b/src/gprs_rlcmac_data.cpp
index 4d5acb99..ff5274fe 100644
--- a/src/gprs_rlcmac_data.cpp
+++ b/src/gprs_rlcmac_data.cpp
@@ -239,7 +239,7 @@ static struct gprs_rlcmac_tbf *alloc_ul_tbf(int8_t use_trx, uint8_t ms_class,
uint8_t tfi;
/* create new TBF, use sme TRX as DL TBF */
- tfi = tfi_alloc(bts, GPRS_RLCMAC_UL_TBF, &trx, use_trx);
+ tfi = tfi_find_free(bts, GPRS_RLCMAC_UL_TBF, &trx, use_trx);
if (tfi < 0) {
LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH ressource\n");
/* FIXME: send reject */
@@ -1174,7 +1174,7 @@ int gprs_rlcmac_rcv_rach(uint8_t ra, uint32_t Fn, int16_t qta)
"(AGCH)\n");
} else {
// Create new TBF
- tfi = tfi_alloc(bts, GPRS_RLCMAC_UL_TBF, &trx, -1);
+ tfi = tfi_find_free(bts, GPRS_RLCMAC_UL_TBF, &trx, -1);
if (tfi < 0) {
LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH ressource\n");
/* FIXME: send reject */