gsm_04_08.c: Call subscr_update everytime we let someone in (Andreas Eversberg)

If location update is requested, but subscriber is not yet authorised
within mm_rx_loc_upd_req() function, the subscr_update() is not called,
because subscriber information is not complete.
During mm_rx_id_resp() the subscriber informations is may be complete,
so authorize subscriber succeeds and database must be updated.
This commit is contained in:
Holger Freyther 2009-06-09 08:26:58 +00:00
parent 578001b151
commit 7a12faa195
1 changed files with 1 additions and 0 deletions

View File

@ -531,6 +531,7 @@ static int mm_rx_id_resp(struct msgb *msg)
/* Check if we can let the mobile station enter */
if (authorize_subscriber(lchan->loc_operation, lchan->subscr)) {
db_subscriber_alloc_tmsi(lchan->subscr);
subscr_update(lchan->subscr, msg->trx->bts, GSM_SUBSCRIBER_UPDATE_ATTACHED);
tmsi = strtoul(lchan->subscr->tmsi, NULL, 10);
release_loc_updating_req(lchan);
return gsm0408_loc_upd_acc(msg->lchan, tmsi);