diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-06-08 13:56:45 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-06-08 13:57:19 +0200 |
commit | ad53ffaf6a9033e45cab76ce4a5bc8e2f625af25 (patch) | |
tree | 7577d450b7f0be3070be1f1ad8a4bd260d5beb5f /src/bts.cpp | |
parent | bbe51c5ce25583a66b57ab7df0b2af3e197668bc (diff) |
tbf: Remove copy and paste between several call siteshfreyther/remove-ts-trx-params
Diffstat (limited to 'src/bts.cpp')
-rw-r--r-- | src/bts.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/bts.cpp b/src/bts.cpp index d7a33173..ba0bf990 100644 --- a/src/bts.cpp +++ b/src/bts.cpp @@ -414,19 +414,9 @@ bool BTS::rcv_rach_sba(uint8_t ra, uint32_t Fn, int16_t qta, bitvec *immediate_a bool BTS::rcv_rach_tbf(uint8_t ra, uint32_t Fn, int16_t qta, bitvec *immediate_assignment, uint8_t *plen) { struct gprs_rlcmac_tbf *tbf; - uint8_t trx_no; - int8_t tfi; /* must be signed */ - // Create new TBF - #warning "Copy and pate with other routines.." - tfi = tfi_find_free(GPRS_RLCMAC_UL_TBF, &trx_no, -1); - if (tfi < 0) { - LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH resource\n"); - /* FIXME: send reject */ - return false; - } - /* set class to 0, since we don't know the multislot class yet */ - tbf = tbf_alloc(&m_bts, NULL, GPRS_RLCMAC_UL_TBF, tfi, trx_no, 0, 1); + // Create new TBF with unknown ms class + tbf = gprs_rlcmac_tbf::allocate(this, NULL, GPRS_RLCMAC_UL_TBF, -1, 0, 1); if (!tbf) { LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH resource\n"); /* FIXME: send reject */ |