aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-02-07 20:44:31 +0100
committerMax <msuraev@sysmocom.de>2018-02-07 20:45:22 +0100
commit322cfc49427209e5b686e85c4e5f8eb08037819a (patch)
tree3b4efa65eaec17f1817198b3b7b8d26daa1f528c /src/common/oml.c
parentaa0f964ce23f9f0c5107e0bbf46166885c82f8d7 (diff)
Add helper to get BCC from BSIC
Diffstat (limited to 'src/common/oml.c')
-rw-r--r--src/common/oml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 465c4169..00b85f1c 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -976,7 +976,7 @@ static int oml_rx_set_chan_attr(struct gsm_bts_trx_ts *ts, struct msgb *msg)
ts->tsc = *TLVP_VAL(&tp, NM_ATT_TSC);
} else {
/* If there is no TSC specified, use the BCC */
- ts->tsc = bts->bsic & 0x3;
+ ts->tsc = BSIC2BCC(bts->bsic);
}
LOGP(DOML, LOGL_INFO, "%s SET CHAN ATTR (TSC = %u)\n",
gsm_abis_mo_name(&ts->mo), ts->tsc);