gmm: Provide RAI obtained from network

MS needs to store this information, hence the app needs to be provided
with it.

Change-Id: Ifdc4d0ccb8bb5ad145cd749bc83df202e91627a3
This commit is contained in:
Pau Espin 2023-05-16 19:47:04 +02:00 committed by pespin
parent c57f5d70c4
commit 1947a84469
2 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,7 @@ struct osmo_gprs_gmm_gmmreg_prim {
/* 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 @@ struct osmo_gprs_gmm_gmmsm_prim {
/* PLMNs MT-caps, attach-type. */
uint32_t allocated_ptmsi;
uint32_t allocated_tlli;
struct gprs_ra_id rai;
} acc;
struct {
uint8_t cause;

View File

@ -289,6 +289,7 @@ int gprs_gmm_submit_gmmreg_attach_cnf(struct gprs_gmm_entity *gmme, bool accepte
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 @@ int gprs_gmm_submit_gmmsm_establish_cnf(struct gprs_gmm_entity *gmme, bool accep
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);