aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts
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 /include/osmo-bts
parentaa0f964ce23f9f0c5107e0bbf46166885c82f8d7 (diff)
Add helper to get BCC from BSIC
Diffstat (limited to 'include/osmo-bts')
-rw-r--r--include/osmo-bts/gsm_data_shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h
index f694114a..6c1383fc 100644
--- a/include/osmo-bts/gsm_data_shared.h
+++ b/include/osmo-bts/gsm_data_shared.h
@@ -890,6 +890,8 @@ struct gsm_lchan *gsm_bts_get_cbch(struct gsm_bts *bts);
int gsm_parse_reg(void *ctx, regex_t *reg, char **str,
int argc, const char **argv) __attribute__ ((warn_unused_result));
+#define BSIC2BCC(bsic) ((bsic) & 0x3)
+
static inline uint8_t gsm_ts_tsc(const struct gsm_bts_trx_ts *ts)
{
if (ts->tsc != -1)