mirror of https://gerrit.osmocom.org/libosmocore
LAPDM: Use correct offset to short header on recevied frame
The offset of the short header on main DCCH is 0, not 2. Change-Id: I8345776768fdf2a700b2ca1d117f9ef4b15777cc
This commit is contained in:
parent
0267b34290
commit
16ad6c29fe
|
@ -754,7 +754,7 @@ static int l2_ph_data_ind(struct msgb *msg, struct lapdm_entity *le,
|
|||
msg->l2h += 2;
|
||||
} else {
|
||||
/* A Short L3 header has both bits == 0. */
|
||||
if (LAPDm_ADDR_SHORT_L2(msg->l2h[2]) == 0) {
|
||||
if (LAPDm_ADDR_SHORT_L2(msg->l2h[0]) == 0) {
|
||||
mctx.lapdm_fmt = LAPDm_FMT_Bter;
|
||||
n201 = N201_Bter_SDCCH;
|
||||
sapi = 0;
|
||||
|
|
Loading…
Reference in New Issue