aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysmo_sock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysmo_sock.cpp')
-rw-r--r--src/sysmo_sock.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sysmo_sock.cpp b/src/sysmo_sock.cpp
index c4565952..1982472b 100644
--- a/src/sysmo_sock.cpp
+++ b/src/sysmo_sock.cpp
@@ -39,6 +39,10 @@ extern "C" {
extern void *tall_pcu_ctx;
+extern "C" {
+int l1if_close_pdch(void *obj);
+}
+
/*
* SYSMO-PCU socket functions
*/
@@ -95,6 +99,10 @@ static void pcu_sock_close(struct pcu_sock_state *state, int lost)
/* disable all slots, kick all TBFs */
for (trx = 0; trx < 8; trx++) {
+ if (bts->trx[trx].fl1h) {
+ l1if_close_pdch(bts->trx[trx].fl1h);
+ bts->trx[trx].fl1h = NULL;
+ }
for (ts = 0; ts < 8; ts++)
bts->trx[trx].pdch[ts].enable = 0;
for (tfi = 0; tfi < 32; tfi++) {