mirror of https://gerrit.osmocom.org/libosmocore
lapdm: Update public lapdm_msg_ctx upon CCCH data ind
This allows uses accessing the updated fields such as fn from the l3_cb when receiving a msg from CCCH, eg: "le->datalink[DL_SAPI0].mctx.fn;" Related: OS#3626 Change-Id: Icabc3759c47b0f7cfe61f1b7a96f08f36714262e
This commit is contained in:
parent
0ef0a1cb1e
commit
45ab0d7335
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue