[S] Change in libosmo-gprs[master]: gmm: Provide RAI obtained from network
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/32737 ) Change subject: gmm: Provide RAI obtained from network ...................................................................... gmm: Provide RAI obtained from network MS needs to store this information, hence the app needs to be provided with it. Change-Id: Ifdc4d0ccb8bb5ad145cd749bc83df202e91627a3 --- M include/osmocom/gprs/gmm/gmm_prim.h M src/gmm/gmm.c 2 files changed, 16 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/37/32737/1 diff --git a/include/osmocom/gprs/gmm/gmm_prim.h b/include/osmocom/gprs/gmm/gmm_prim.h index 665b3df..e5eada0 100644 --- a/include/osmocom/gprs/gmm/gmm_prim.h +++ b/include/osmocom/gprs/gmm/gmm_prim.h @@ -120,6 +120,7 @@ /* PLMNs MT-caps, attach-type. */ uint32_t allocated_ptmsi; uint32_t allocated_tlli; + struct gprs_ra_id rai; } acc; struct { uint8_t cause; /* See enum gsm48_gsm_cause */ @@ -225,6 +226,7 @@ /* PLMNs MT-caps, attach-type. */ uint32_t allocated_ptmsi; uint32_t allocated_tlli; + struct gprs_ra_id rai; } acc; struct { uint8_t cause; diff --git a/src/gmm/gmm.c b/src/gmm/gmm.c index c75a279..385da4f 100644 --- a/src/gmm/gmm.c +++ b/src/gmm/gmm.c @@ -289,6 +289,7 @@ if (accepted) { gmm_prim_tx->gmmreg.attach_cnf.acc.allocated_ptmsi = gmme->ptmsi; gmm_prim_tx->gmmreg.attach_cnf.acc.allocated_tlli = gmme->tlli; + memcpy(&gmm_prim_tx->gmmreg.attach_cnf.acc.rai, &gmme->ra, sizeof(gmme->ra)); } else { gmm_prim_tx->gmmreg.attach_cnf.rej.cause = cause; } @@ -333,6 +334,7 @@ if (accepted) { gmm_prim_tx->gmmsm.establish_cnf.acc.allocated_ptmsi = gmme->ptmsi; gmm_prim_tx->gmmsm.establish_cnf.acc.allocated_tlli = gmme->tlli; + memcpy(&gmm_prim_tx->gmmsm.establish_cnf.acc.rai, &gmme->ra, sizeof(gmme->ra)); } rc = gprs_gmm_prim_call_up_cb(gmm_prim_tx); -- To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/32737 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-gprs Gerrit-Branch: master Gerrit-Change-Id: Ifdc4d0ccb8bb5ad145cd749bc83df202e91627a3 Gerrit-Change-Number: 32737 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-MessageType: newchange
participants (1)
-
pespin