diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-05-13 18:39:36 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-05-19 12:50:25 +0200 |
commit | 1a1557a60a1f3f86017e298f95a452d8c7811a0e (patch) | |
tree | 1a483be092e4e9ea3207d773416624d6df1b3cac /src/bts.cpp | |
parent | f62b0ec37dede666f96c17302a106483525441a0 (diff) |
Move TBF list from BTS to the TRX structure
The TBFs are managed per TRX. Move the global list from BTS to TRX.
Related: OS#1541
Change-Id: Id3c59c11d57d765fe68aaebaac94290c0d84feb2
Diffstat (limited to 'src/bts.cpp')
-rw-r--r-- | src/bts.cpp | 6 |
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); } |