From 3afe56d7d8d63d64ec3afb7d3d3b1490426bdfa2 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Fri, 25 Jan 2013 07:22:59 +0100 Subject: Fixed closing of PDCH when enabling sysmo-bts' direct DSP access If not compiled with this support, the closing function does not exists, so it must not be called. Removed a "#warning", because closing is already supported. --- src/sysmo_sock.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sysmo_sock.cpp') diff --git a/src/sysmo_sock.cpp b/src/sysmo_sock.cpp index 1982472b..a4cc6ded 100644 --- a/src/sysmo_sock.cpp +++ b/src/sysmo_sock.cpp @@ -99,10 +99,12 @@ static void pcu_sock_close(struct pcu_sock_state *state, int lost) /* disable all slots, kick all TBFs */ for (trx = 0; trx < 8; trx++) { +#ifdef ENABLE_SYSMODSP if (bts->trx[trx].fl1h) { l1if_close_pdch(bts->trx[trx].fl1h); bts->trx[trx].fl1h = NULL; } +#endif for (ts = 0; ts < 8; ts++) bts->trx[trx].pdch[ts].enable = 0; for (tfi = 0; tfi < 32; tfi++) { -- cgit v1.2.3