aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-05-24 03:54:14 +0200
committerlaforge <laforge@osmocom.org>2021-06-04 20:04:13 +0000
commitdd3b7d469e1a8962c5ee73839fab408f39f81b34 (patch)
treebffba876f5f23e914dfe367e4897cdecbd8ec1cb /src/common/oml.c
parentd8598005ce27f419a940e1a4c16e25f876f25cb9 (diff)
[VAMOS] common/oml: generalize checking BTS_FEAT_MULTI_TSC
Diffstat (limited to 'src/common/oml.c')
-rw-r--r--src/common/oml.c7
1 files changed, 7 insertions, 0 deletions
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);