aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-10-09 04:23:16 +0700
committerlaforge <laforge@osmocom.org>2019-10-09 16:45:48 +0000
commit2cbdeba5cf55b72bc3e39e1c333efc1a868ccf2f (patch)
treef9de30b5373f042549a6ec250b5590b058029a5d
parent43a8ed2b55126839b2c6b9541cf842895d7d396a (diff)
L1SAP: fix gsmtap_pdch(): there can be no DATA.ind on PTCCH/U
-rw-r--r--src/common/l1sap.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 0696fab7..7d403f01 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -333,13 +333,6 @@ static int gsmtap_pdch(struct osmo_phsap_prim *l1sap, uint8_t *chan_type,
if (L1SAP_IS_PTCCH(fn)) {
*chan_type = GSMTAP_CHANNEL_PTCCH;
*ss = L1SAP_FN2PTCCHBLOCK(fn);
- if (l1sap->oph.primitive == PRIM_OP_INDICATION) {
- OSMO_ASSERT(len > 0);
- if ((*data[0]) == 7)
- return -EINVAL;
- (*data)++;
- (*len)--;
- }
} else
*chan_type = GSMTAP_CHANNEL_PACCH;