aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gsm/lapdm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index e96e2182..9f795c6d 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -857,6 +857,8 @@ static int l2_ph_data_ind(struct msgb *msg, struct lapdm_entity *le,
case LAPDm_FMT_Bter:
/* fall-through */
case LAPDm_FMT_Bbis:
+ /* Update context so that users can read fields like fn: */
+ memcpy(&mctx.dl->mctx, &mctx, sizeof(mctx.dl->mctx));
/* directly pass up to layer3 */
msg->l3h = msg->l2h;
msgb_pull_to_l3(msg);