aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-oc2g/l1_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-oc2g/l1_if.c')
-rw-r--r--src/osmo-bts-oc2g/l1_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-oc2g/l1_if.c b/src/osmo-bts-oc2g/l1_if.c
index 2ad59c9c..0e45bf68 100644
--- a/src/osmo-bts-oc2g/l1_if.c
+++ b/src/osmo-bts-oc2g/l1_if.c
@@ -392,7 +392,7 @@ static int ph_data_req(struct gsm_bts_trx *trx, struct msgb *msg,
abort();
}
- len = msgb_l2len(msg);
+ len = (msg->l2h) ? msgb_l2len(msg) : 0;
chan_nr = l1sap->u.data.chan_nr;
link_id = l1sap->u.data.link_id;