aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_bssgp_pcu.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_bssgp_pcu.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_bssgp_pcu.cpp')
-rw-r--r--src/gprs_bssgp_pcu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index 6f67f521..4833af8a 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -233,7 +233,7 @@ static int gprs_bssgp_pcu_rx_dl_ud(struct msgb *msg, struct tlv_parsed *tp)
}
// Create new TBF (any TRX)
- tfi = tfi_alloc(the_pcu.bts, GPRS_RLCMAC_DL_TBF, &trx, use_trx);
+ tfi = tfi_find_free(the_pcu.bts, GPRS_RLCMAC_DL_TBF, &trx, use_trx);
if (tfi < 0) {
LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH resource\n");
/* FIXME: send reject */