aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/gsm_data.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-05-22 02:42:42 +0200
committerlaforge <laforge@osmocom.org>2021-05-23 10:09:27 +0000
commita344db979f6951e313feb086369ec3c95745792b (patch)
tree3c6fea2bd71a5449c01f6769406f1553707b928e /include/osmo-bts/gsm_data.h
parentd7323d6f1f78ec1bd4c2838257395d47e54e932a (diff)
[VAMOS] gsm_data.h: fix wrong bit-mask in BSIC2BCC macro
BCC takes 3 LSB bits of the BSIC, so we should apply 0b111 or 0x07. The BSIC is specified in 3GPP TS 03.03 section 4.3.2. Change-Id: Id24ad64e6c6de080ab43faa272daf844fbba6954 Related: SYS#5315, OS#4940
Diffstat (limited to 'include/osmo-bts/gsm_data.h')
-rw-r--r--include/osmo-bts/gsm_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index 50ee88ea..69b18bc5 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -519,7 +519,7 @@ uint8_t gsm_lchan2chan_nr(const struct gsm_lchan *lchan);
uint8_t gsm_lchan_as_pchan2chan_nr(const struct gsm_lchan *lchan,
enum gsm_phys_chan_config as_pchan);
-#define BSIC2BCC(bsic) ((bsic) & 0x3)
+#define BSIC2BCC(bsic) ((bsic) & 0x07)
uint8_t gsm_ts_tsc(const struct gsm_bts_trx_ts *ts);