summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/common/l1ctl.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-03-09 15:42:33 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-03-09 19:02:22 +0700
commite5ee0e5ef19c8c4c48f7999238d39ca70cce4114 (patch)
tree811263faa51362c0482a8a40e2345a09e2824702 /src/host/layer23/src/common/l1ctl.c
parentd3396238678b0f586346f7d762be340984d1c6f2 (diff)
firmware/layer1: introduce experimental PDCH supportfixeria/gprs
Diffstat (limited to 'src/host/layer23/src/common/l1ctl.c')
-rw-r--r--src/host/layer23/src/common/l1ctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c
index b6ee455a..6444fffb 100644
--- a/src/host/layer23/src/common/l1ctl.c
+++ b/src/host/layer23/src/common/l1ctl.c
@@ -319,6 +319,12 @@ static int rx_ph_data_ind(struct osmocom_ms *ms, struct msgb *msg)
dl->snr, ccch->data, sizeof(ccch->data));
}
+ /* HACK: Do not pass PDTCH / PTCCH frames to LAPDm */
+ if (chan_type == RSL_CHAN_OSMO_PDCH) {
+ msgb_free(msg);
+ return 0;
+ }
+
/* determine LAPDm entity based on SACCH or not */
if (dl->link_id & 0x40)
le = &ms->lapdm_channel.lapdm_acch;