aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-05-22 03:22:09 +0200
committerlaforge <laforge@osmocom.org>2021-05-23 10:09:27 +0000
commitd4abdd80fecefba8becd879dddfbc9a2f369364a (patch)
treee29cb798c9b6afaeb3dea946d4ee2724f6e974f1 /src/common/l1sap.c
parenta344db979f6951e313feb086369ec3c95745792b (diff)
[VAMOS] gsm_data.h: introduce and use BTS_TSC macro
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index b74e0d32..45abe4e2 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1975,10 +1975,10 @@ int l1sap_chan_act(struct gsm_bts_trx *trx, uint8_t chan_nr, struct tlv_parsed *
/* The PHY may not support using different TSCs */
if (!osmo_bts_has_feature(trx->bts->features, BTS_FEAT_MULTI_TSC)
- && cd->h0.tsc != (trx->bts->bsic & 7)) {
+ && cd->h0.tsc != BTS_TSC(trx->bts)) {
LOGPLCHAN(lchan, DL1C, LOGL_ERROR, "This PHY does not support "
"lchan TSC %u != BSIC-TSC %u, sending NACK\n",
- cd->h0.tsc, trx->bts->bsic & 7);
+ cd->h0.tsc, BTS_TSC(trx->bts));
return -RSL_ERR_SERV_OPT_UNIMPL;
}
}