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.
This commit is contained in:
Jonathan Santos 2011-07-31 12:31:00 -04:00
parent fd7223f7e6
commit a101a5f43e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {