From 1ccc5e384b8f4cf2c18098ffd0aac6e27cffad56 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 5 May 2023 19:27:14 +0200 Subject: [PATCH] sm: Fix APN IE content not transmitted in Act PDP Ctx Req Change-Id: I70be2ff5e7e0fea5e93d7b9963064c38a0382f30 --- src/sm/sm_pdu.c | 1 + tests/sm/sm_prim_test.ok | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sm/sm_pdu.c b/src/sm/sm_pdu.c index f8512c0..8b9dd68 100644 --- a/src/sm/sm_pdu.c +++ b/src/sm/sm_pdu.c @@ -209,6 +209,7 @@ int gprs_sm_build_act_pdp_ctx_req(struct gprs_sm_entity *sme, if (rc < 0) return -EINVAL; *l = rc; + msgb_put(msg, *l); } /* 10.5.6.3 Protocol configuration options (Optional) */ diff --git a/tests/sm/sm_prim_test.ok b/tests/sm/sm_prim_test.ok index 33f7291..d713308 100644 --- a/tests/sm/sm_prim_test.ok +++ b/tests/sm/sm_prim_test.ok @@ -1,6 +1,6 @@ ==== test_sm_prim_ms() [start] ==== test_sm_prim_gmm_down_cb(): Rx GMMSM-ESTABLISH.request sess_id=0 -test_sm_prim_gmm_down_cb(): Rx GMMSM-UNITDATA.request sess_id=0 SMPDU=[8a 41 06 03 01 00 02 01 21 28 04 27 01 00 ] +test_sm_prim_gmm_down_cb(): Rx GMMSM-UNITDATA.request sess_id=0 SMPDU=[8a 41 06 03 01 00 02 01 21 28 04 03 61 70 6e 27 01 00 ] test_sm_prim_sndcp_up_cb(): Rx SNSM-ACTIVATE.indication test_sm_prim_up_cb(): Rx SMREG-PDP_ACTIVATE.confirm ==== test_sm_prim_ms() [end] ====