aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bts.cpp')
-rw-r--r--src/bts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index 94cdcb33..dc550ef1 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -263,9 +263,6 @@ struct gprs_rlcmac_bts* bts_alloc(struct gprs_pcu *pcu, uint8_t bts_nr)
bts->T_defs_bts = T_defs_bts;
osmo_tdefs_reset(bts->T_defs_bts);
- INIT_LLIST_HEAD(&bts->ul_tbfs);
- INIT_LLIST_HEAD(&bts->dl_tbfs);
-
/* initialize back pointers */
for (size_t trx_no = 0; trx_no < ARRAY_SIZE(bts->trx); ++trx_no)
bts_trx_init(&bts->trx[trx_no], bts, trx_no);
@@ -1185,6 +1182,9 @@ void bts_trx_init(struct gprs_rlcmac_trx *trx, struct gprs_rlcmac_bts *bts, uint
trx->trx_no = trx_no;
trx->bts = bts;
+ INIT_LLIST_HEAD(&trx->ul_tbfs);
+ INIT_LLIST_HEAD(&trx->dl_tbfs);
+
for (size_t ts_no = 0; ts_no < ARRAY_SIZE(trx->pdch); ts_no++)
pdch_init(&trx->pdch[ts_no], trx, ts_no);
}