 
            pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/32491 )
Change subject: sm: Fill gmmsm.establish_req.attach_with_imsi ......................................................................
sm: Fill gmmsm.establish_req.attach_with_imsi
Change-Id: Ie4fbadc1c3a32375ccae84a4d54366d59ab7fe2f --- M src/sm/sm.c 1 file changed, 11 insertions(+), 0 deletions(-)
Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified
diff --git a/src/sm/sm.c b/src/sm/sm.c index 0f39708..4fa35df 100644 --- a/src/sm/sm.c +++ b/src/sm/sm.c @@ -26,6 +26,7 @@ #include <osmocom/core/talloc.h> #include <osmocom/core/tdef.h> #include <osmocom/gsm/protocol/gsm_04_08_gprs.h> +#include <osmocom/gsm/gsm48.h>
#include <osmocom/gprs/sndcp/sndcp_prim.h>
@@ -190,6 +191,7 @@
gmm_prim_tx = osmo_gprs_gmm_prim_alloc_gmmsm_establish_req(sme->sess_id); gmm_prim_tx->gmmsm.establish_req.attach_type = OSMO_GPRS_GMM_ATTACH_TYPE_GPRS; + gmm_prim_tx->gmmsm.establish_req.attach_with_imsi = (ms->gmm.ptmsi == GSM_RESERVED_TMSI); gmm_prim_tx->gmmsm.establish_req.ptmsi = ms->gmm.ptmsi; OSMO_STRLCPY_ARRAY(gmm_prim_tx->gmmsm.establish_req.imsi, ms->gmm.imsi); OSMO_STRLCPY_ARRAY(gmm_prim_tx->gmmsm.establish_req.imei, ms->gmm.imei);
