aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorefistokl <mykola@pentonet.com>2019-04-07 17:14:31 +0300
committerMykola Shchetinin <mykola@pentonet.com>2019-04-08 02:58:18 +0000
commitc42e21e81c818e4edc86b91711b03334c8c8ea8f (patch)
tree987c6c3bb3d49e53f08fbf85fb6a3cf46b950287
parent313cf355817fa8774f34ce5a2c95b6473d12fa63 (diff)
gsm0408_rcv_gmm: send Iu-ReleaseCommand upon receiving Attach Complete.
UE expects to receive Iu-ReleaseCommand after Attach Complete. If it doesn't receive it, then it sends Iu-ReleaseRequest after a timeout which makes the "PS Activation" process long. Change-Id: Ib5053e3cd655d08ff3fd0fefa48325fabb1797c8 Related: OS#3908
-rw-r--r--src/gprs/gprs_gmm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index cc6ea4a2f..b0c59029a 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -2035,6 +2035,13 @@ static int gsm0408_rcv_gmm(struct sgsn_mm_ctx *mmctx, struct msgb *msg,
goto null_mmctx;
/* only in case SGSN offered new P-TMSI */
LOGMMCTXP(LOGL_INFO, mmctx, "-> ATTACH COMPLETE\n");
+
+#ifdef BUILD_IU
+ if (mmctx->iu.ue_ctx) {
+ ranap_iu_tx_release(mmctx->iu.ue_ctx, NULL);
+ }
+#endif
+
mmctx_timer_stop(mmctx, 3350);
mmctx->t3350_mode = GMM_T3350_MODE_NONE;
mmctx->p_tmsi_old = 0;