aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-08-27 19:29:35 +0200
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:39:03 +0200
commitc9441b3c0b898d09d9e8d6ad4c616a62a905f1d7 (patch)
treedbaf6bfd48f13e729124317d90931b4f5b8fbbb7 /src
parentace9a8742f700a748620f4b590b6c5468cd4d584 (diff)
l1sap: Add a warning about assuming BS_AG_BLKS_RES=1
This is a regression of the code compared to the existing sysmoBTS code, where the L1 tells us whether its AGCH or PCH. However, it was not used even in the old code, so we can afford to simply put a #warning here.
Diffstat (limited to 'src')
-rw-r--r--src/common/l1sap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index da4cc480..12be383c 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -112,6 +112,7 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx,
memcpy(p, fill_frame, GSM_MACBLOCK_LEN);
} else if (L1SAP_IS_CHAN_AGCH_PCH(chan_nr)) {
p = msgb_put(msg, GSM_MACBLOCK_LEN);
+#warning "TODO: Yet another assumption that BS_AG_BLKS_RES=1"
/* if CCCH block is 0, it is AGCH */
rc = bts_ccch_copy_msg(trx->bts, p, &g_time,
(L1SAP_FN2CCCHBLOCK(fn) < 1));