From adb2f185387fd2d6a40a8bdceb336132f8dd19ca Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 7 Aug 2012 17:06:08 +0200 Subject: Assign TFI to complete TRX, not just one TS This is required, since we may change slot allocation. In case of a change, we do not want to be unable to change, if the same TFI on one of the other slots is already in use by a different TBF (having same TFI, but on different slot). --- src/sysmo_sock.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/sysmo_sock.cpp') diff --git a/src/sysmo_sock.cpp b/src/sysmo_sock.cpp index 6b390ed..e3b9516 100644 --- a/src/sysmo_sock.cpp +++ b/src/sysmo_sock.cpp @@ -94,16 +94,15 @@ static void pcu_sock_close(struct pcu_sock_state *state) /* disable all slots, kick all TBFs */ for (trx = 0; trx < 8; trx++) { - for (ts = 0; ts < 8; ts++) { + for (ts = 0; ts < 8; ts++) bts->trx[trx].pdch[ts].enable = 0; - for (tfi = 0; tfi < 32; tfi++) { - tbf = bts->trx[trx].pdch[ts].ul_tbf[tfi]; - if (tbf) - tbf_free(tbf); - tbf = bts->trx[trx].pdch[ts].dl_tbf[tfi]; - if (tbf) - tbf_free(tbf); - } + for (tfi = 0; tfi < 32; tfi++) { + tbf = bts->trx[trx].ul_tbf[tfi]; + if (tbf) + tbf_free(tbf); + tbf = bts->trx[trx].dl_tbf[tfi]; + if (tbf) + tbf_free(tbf); } } -- cgit v1.2.3