aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-26 19:10:43 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:11 +0100
commitf63cabd931cc0d03420b41d5990d04e48dbe74c4 (patch)
tree86c09ab3dfffa3a6ace46d8e5aa8f54745798293 /src/tbf.cpp
parenta54bbbbf02e92bc770e6704d9c9f73f079193d8f (diff)
tbf/pdch/bts: Move the tbf look-up by tfi into the BTS
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r--src/tbf.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index d1ca676f..2282aeac 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -407,28 +407,6 @@ void gprs_rlcmac_tbf::stop_timer()
}
}
-/* lookup TBF Entity (by TFI) */
-struct gprs_rlcmac_tbf *tbf_by_tfi(struct gprs_rlcmac_bts *bts,
- uint8_t tfi, uint8_t trx, enum gprs_rlcmac_tbf_direction dir)
-{
- struct gprs_rlcmac_tbf *tbf;
-
- if (tfi >= 32 || trx >= 8)
- return NULL;
-
- if (dir == GPRS_RLCMAC_UL_TBF)
- tbf = bts->trx[trx].ul_tbf[tfi];
- else
- tbf = bts->trx[trx].dl_tbf[tfi];
- if (!tbf)
- return NULL;
-
- if (tbf->state_is_not(GPRS_RLCMAC_RELEASING))
- return tbf;
-
- return NULL;
-}
-
struct gprs_rlcmac_tbf *tbf_alloc(struct gprs_rlcmac_bts *bts,
struct gprs_rlcmac_tbf *old_tbf, enum gprs_rlcmac_tbf_direction dir,
uint8_t tfi, uint8_t trx,