From a52c78dd3e9d7630772888db645208a86f339f2f Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 3 Jun 2019 00:12:40 +0700 Subject: common/bts.c: bts_supports_cm(): take care about GSM48_CMODE_SIGN At the moment, bts_supports_cm() is only called on reception of RSL Channel MODE MODIFY from the BSC. The idea is to check whether the indicated RSL channel mode is supported by a BTS model. RSL Channel MODE MODIFY message may indicate a channel in signalling mode, i.e. GSM48_CMODE_SIGN, which has always been rejected so far. Let's assume that signalling is always supported, as there is no special BTS_FEAT_* definition to check that. This change should make BTS_Tests.TC_rsl_modify_encr pass. Change-Id: I8ea98a3eb9dc15a04f665596ee276883eb824b9a --- src/common/bts.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/bts.c b/src/common/bts.c index 97e7a8b1..596e5e01 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -744,6 +744,11 @@ int bts_supports_cm(struct gsm_bts *bts, enum gsm_phys_chan_config pchan, { enum gsm_bts_features feature = _NUM_BTS_FEAT; + /* We assume that signalling support is mandatory, + * there is no BTS_FEAT_* definition to check that. */ + if (cm == GSM48_CMODE_SIGN) + return 1; + /* Before the requested pchan/cm combination can be checked, we need to * convert it to a feature identifier we can check */ switch (pchan) { -- cgit v1.2.3