gmm: Avoid submitting GMMSM-Release.ind if no session was requested

Change-Id: I2fecfd122fc4be863be184f1ff08d9a31e07b956
This commit is contained in:
Pau Espin 2023-05-31 14:46:04 +02:00
parent 7b9654c4d0
commit fd397fe215
2 changed files with 3 additions and 3 deletions

View File

@ -97,8 +97,9 @@ static void st_gmm_ms_deregistered_on_enter(struct osmo_fsm_inst *fi, uint32_t p
gprs_gmm_gmme_t3312_stop(ctx->gmme);
gprs_gmm_gmme_t3316_stop(ctx->gmme);
/* TS 24.007 9.5.1.4: informs SM layerthat the MS has been GPRS detached, e.g. by timer expiry */
if (prev_state != GPRS_GMM_MS_ST_NULL)
/* TS 24.007 9.5.1.4: informs SM layer that the MS has been GPRS detached, e.g. by timer expiry */
if (prev_state != GPRS_GMM_MS_ST_NULL &&
ctx->gmme->sess_id != GPRS_GMM_SESS_ID_UNASSIGNED)
gprs_gmm_submit_gmmsm_release_ind(ctx->gmme);
}

View File

@ -23,7 +23,6 @@ test_gmm_prim_llc_down_cb(): Rx LLGMM-TRIGGER.request TLLI=0xec999002
test_gmm_prim_llc_down_cb(): Rx LL-UNITDATA.request TLLI=0xec999002 SAPI=GMM l3=[08 05 20 0a 00 05 f4 ec 99 90 02 ]
test_gmm_prim_llc_down_cb(): Rx LLGMM-ASSIGN.request old_TLLI=0xec999002 new_TLLI=0xffffffff
test_gmm_prim_up_cb(): Rx GMMREG-DETACH.confirm detach_type='GPRS detach'
test_gmm_prim_up_cb(): Rx GMMSM-RELEASE.indication sess_id=4294967295
==== test_gmm_prim_ms_gmmreg() [end] ====
==== test_gmm_prim_ms_gmmsm() [start] ====
sys={0.000000}, mono={0.000000}: clock_override_set