aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-06-29 16:44:01 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-01 07:38:40 +0000
commita38d34112fb46c90ec4cb12c597778e65cceaef8 (patch)
treeaf977fb03dff698e07210d35dfbe2978b9487a78 /src
parentcc1602f5921f02913e5bcd58fab41a26ca89a2bc (diff)
l1sap: Don't enqueue PTCCH blocks for loopback
When we're in loopback testing mode for PDTCH, we must make sure to avoid adding PTCCH blocks to the queue. Only PDTCH blocks must be enqueued. For the transmit (downlink) side, we already had the PTCCH check in place. Change-Id: I7ef40d9bdf74a99375bc6568ed9483499664bf6f
Diffstat (limited to 'src')
-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 85d1dd1e..71690cd2 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -967,7 +967,7 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx,
lchan = get_lchan_by_chan_nr(trx, chan_nr);
if (!lchan)
LOGP(DL1P, LOGL_ERROR, "No lchan for chan_nr=%d\n", chan_nr);
- if (lchan && lchan->loopback) {
+ if (lchan && lchan->loopback && !L1SAP_IS_PTCCH(fn)) {
/* we are in loopback mode (for BER testing)
* mode and need to enqeue the frame to be
* returned in downlink */