From a101a5f43ed33dc0c737ba5906874c24a3063875 Mon Sep 17 00:00:00 2001 From: Jonathan Santos Date: Sun, 31 Jul 2011 12:31:00 -0400 Subject: gprs: Fix retry of ATTACH REQUEST from mobile If, for some reason, the mobile did not receive an ATTACH ACCEPT it resends an ATTACH REQUEST. The SGSN then would send a new ATTACH ACCEPT. However, after sending the new ATTACH REQUEST, it was unable to find the GMM context if the mobile uses the old foreign tlli (as it is allowed to do). This fixes that. --- src/gprs/gprs_llc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gprs/gprs_llc.c b/src/gprs/gprs_llc.c index c5ff72944..d9b582ec8 100644 --- a/src/gprs/gprs_llc.c +++ b/src/gprs/gprs_llc.c @@ -838,7 +838,7 @@ int gprs_llgmm_assign(struct gprs_llc_llme *llme, /* TLLI Change 8.3.2 */ /* Both TLLI Old and TLLI New are assigned; use New when * (re)transmitting. Accept toth Old and New on Rx */ - llme->old_tlli = tlli_foreign2local(llme->tlli); + llme->old_tlli = tlli_foreign2local(old_tlli); llme->tlli = tlli_foreign2local(new_tlli); llme->state = GPRS_LLMS_ASSIGNED; } else if (old_tlli != 0xffffffff && new_tlli == 0xffffffff) { -- cgit v1.2.3