aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysmo_sock.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-08-07 17:06:08 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2012-08-07 17:06:08 +0200
commitadb2f185387fd2d6a40a8bdceb336132f8dd19ca (patch)
tree007be7211778e011d22f0c65519466c95ea12d20 /src/sysmo_sock.cpp
parent07e97cf8a551b05d7f5f3f9583b68b2eff0f1c23 (diff)
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).
Diffstat (limited to 'src/sysmo_sock.cpp')
-rw-r--r--src/sysmo_sock.cpp17
1 files changed, 8 insertions, 9 deletions
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);
}
}