diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2012-07-13 14:46:03 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2012-07-13 14:46:03 +0200 |
commit | b0c7ea72c8157f1b8124bbe105aa05c46a77a005 (patch) | |
tree | dda9d26a9e6a8b12022a24bc3ae090b091cb2b97 /src/sysmo_sock.cpp | |
parent | e266bd48aca6f5b7831eb7c44e4773e9884d4c56 (diff) |
Changed data structures for TBF and PDCH instances, to allow multislot
The new data structure is required to define slot/TFI assigment for MS
with multislot capability.
Now there are two lists for TBFs: uplink and downlink. It is possible to
have different TBFs with same TFI in the same direction, as long as they
are assigned on different timeslots.
See tbf.txt for description.
Note: This does not implement any multislot support. It defines the new
data structure. Currently only the first slot is assigned.
Diffstat (limited to 'src/sysmo_sock.cpp')
-rw-r--r-- | src/sysmo_sock.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sysmo_sock.cpp b/src/sysmo_sock.cpp index 390f3f69..6b390edc 100644 --- a/src/sysmo_sock.cpp +++ b/src/sysmo_sock.cpp @@ -97,7 +97,10 @@ static void pcu_sock_close(struct pcu_sock_state *state) 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].tbf[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); } |