From 67576744f5a8d410bd20d75f04e1a96d2c16eb49 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 16 Nov 2016 14:06:36 +0100 Subject: unixsocket: Ensure superchannel is disabled for new connections When the BSC is shut down or disconnected it may happen that the SIU stays in superchannel mode, while the BTS is falling back into its normal communication mode. This causes a permanent link failure because the SIU is still trying to reconnect on the superchannel. This patch ensures that for every new connection the superchannel is taken down by default. If the connection was still good, SIU and BTS will switch back to normal mode together. If not. The SIU will switch back alone while the BTS is already switched back by itsself. --- src/input/unixsocket.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/unixsocket.c b/src/input/unixsocket.c index 144359b..09a8cd3 100644 --- a/src/input/unixsocket.c +++ b/src/input/unixsocket.c @@ -199,6 +199,9 @@ static int unixsocket_line_update(struct e1inp_line *line) e1i_ts, &lapd_profile_abis); } + /* Ensure Superchannel is turned of when a new connection is made */ + e1inp_ericsson_set_altc(line, 0); + return ret; } -- cgit v1.2.3