From ec16c161932c16280d7b4bdf8e72262e7f81c873 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 17 Oct 2016 01:03:53 +0200 Subject: lchan release in error state: SACCH deact only for SACCH pchans This is useful particularly in case where we deactivate PDCHs which don't have a SACCH associated. The existin code would always attempt to deactivate a SACCH even in those cases, leading to the BTS responsding with related error messages. Change-Id: Iaf46782329b38ba8f3d438e6c75c2d467b852734 --- openbsc/src/libcommon/gsm_data_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/libcommon') diff --git a/openbsc/src/libcommon/gsm_data_shared.c b/openbsc/src/libcommon/gsm_data_shared.c index df204feab..387af7068 100644 --- a/openbsc/src/libcommon/gsm_data_shared.c +++ b/openbsc/src/libcommon/gsm_data_shared.c @@ -729,7 +729,7 @@ static const uint8_t subslots_per_pchan[] = { }; /*! Return the actual pchan type, also heeding dynamic TS. */ -static enum gsm_phys_chan_config ts_pchan(struct gsm_bts_trx_ts *ts) +enum gsm_phys_chan_config ts_pchan(struct gsm_bts_trx_ts *ts) { switch (ts->pchan) { case GSM_PCHAN_TCH_F_TCH_H_PDCH: -- cgit v1.2.3