pespin has uploaded this change for review.

View Change

sm: Fill gmmsm.establish_req.attach_with_imsi

Change-Id: Ie4fbadc1c3a32375ccae84a4d54366d59ab7fe2f
---
M src/sm/sm.c
1 file changed, 11 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/91/32491/1
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);

To view, visit change 32491. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: Ie4fbadc1c3a32375ccae84a4d54366d59ab7fe2f
Gerrit-Change-Number: 32491
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange