From dd3b7d469e1a8962c5ee73839fab408f39f81b34 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 24 May 2021 03:54:14 +0200 Subject: [VAMOS] common/oml: generalize checking BTS_FEAT_MULTI_TSC Change-Id: Iaa5aced70e166963106c27ebdb09adaae22daea4 Related: SYS#4895, OS#4941 --- src/common/oml.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common/oml.c') diff --git a/src/common/oml.c b/src/common/oml.c index 0a502c10..7bf89c54 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -962,6 +962,13 @@ static int oml_rx_set_chan_attr(struct gsm_bts_trx_ts *ts, struct msgb *msg) /* 9.4.60 TSC */ if (TLVP_PRES_LEN(&tp, NM_ATT_TSC, 1)) { ts->tsc_oml = ts->tsc = *TLVP_VAL(&tp, NM_ATT_TSC); + if (ts->tsc != BTS_TSC(bts) && + !osmo_bts_has_feature(bts->features, BTS_FEAT_MULTI_TSC)) { + LOGPFOH(DOML, LOGL_ERROR, foh, "SET CHAN ATTR: this BTS model does not " + "support TSC %u != BSIC-BCC %u\n", ts->tsc, BTS_TSC(bts)); + talloc_free(tp_merged); + return oml_fom_ack_nack(msg, NM_NACK_PARAM_RANGE); + } } else { /* If there is no TSC specified, use the BCC */ ts->tsc_oml = ts->tsc = BTS_TSC(bts); -- cgit v1.2.3