aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-10-17 11:07:51 +0200
committerMax <msuraev@sysmocom.de>2016-10-18 08:08:25 +0000
commitebb483b69a5319e522ba5f713e9cb6f68a814a6a (patch)
treebb3d719da7872869671c14029d9e410a40b1dc4f /src/common/l1sap.c
parentb0c1d21581f009e9509e0fd995c86d1785785c7a (diff)
Replace magic number with define
SDCCH occupy lchan 0..3 in combined configuration so for CCCH we've always used lchan[4] - replace it with CCCH_LCHAN define and add comment. Change-Id: Ic5d742c292d638f119c6b4672120c1950adeb7f0
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index f3e620ee..59866a29 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -947,7 +947,7 @@ static int l1sap_ph_rach_ind(struct gsm_bts_trx *trx,
DEBUGP(DL1P, "Rx PH-RA.ind");
- lc = &trx->ts[0].lchan[4].lapdm_ch;
+ lc = &trx->ts[0].lchan[CCCH_LCHAN].lapdm_ch;
/* check for under/overflow / sign */
if (!check_acc_delay(rach_ind, btsb, &acc_delay)) {