tbf/bts: Move the tfi_find_free into the bts
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 2282aea..4225b3b 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -158,7 +158,7 @@
// Create new TBF (any TRX)
#warning "Copy and paste with alloc_ul_tbf"
- tfi = tfi_find_free(bts, GPRS_RLCMAC_DL_TBF, &trx, use_trx);
+ tfi = bts->bts->tfi_find_free(GPRS_RLCMAC_DL_TBF, &trx, use_trx);
if (tfi < 0) {
LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH resource\n");
/* FIXME: send reject */
@@ -227,7 +227,7 @@
#warning "Copy and paste with tbf_new_dl_assignment"
/* create new TBF, use sme TRX as DL TBF */
- tfi = tfi_find_free(bts, GPRS_RLCMAC_UL_TBF, &trx, use_trx);
+ tfi = bts->bts->tfi_find_free(GPRS_RLCMAC_UL_TBF, &trx, use_trx);
if (tfi < 0) {
LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH ressource\n");
/* FIXME: send reject */