aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gprs_sgsn.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/gprs/gprs_sgsn.c')
-rw-r--r--openbsc/src/gprs/gprs_sgsn.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c
index 781be3ffb..14b925400 100644
--- a/openbsc/src/gprs/gprs_sgsn.c
+++ b/openbsc/src/gprs/gprs_sgsn.c
@@ -487,28 +487,11 @@ int sgsn_force_reattach_oldmsg(struct msgb *oldmsg)
return gsm0408_gprs_force_reattach_oldmsg(oldmsg);
}
-void sgsn_update_subscriber_data(struct sgsn_mm_ctx *mmctx,
- struct gsm_subscriber *subscr)
+void sgsn_update_subscriber_data(struct sgsn_mm_ctx *mmctx)
{
- if (!mmctx && subscr && strlen(subscr->imsi) > 0) {
- mmctx = sgsn_mm_ctx_by_imsi(subscr->imsi);
- OSMO_ASSERT(!mmctx || !mmctx->subscr || mmctx->subscr == subscr);
- }
-
- if (!mmctx) {
- LOGP(DMM, LOGL_INFO,
- "Subscriber data update for unregistered MM context, IMSI %s\n",
- subscr->imsi);
- return;
- }
-
+ OSMO_ASSERT(mmctx != NULL);
LOGMMCTXP(LOGL_INFO, mmctx, "Subscriber data update\n");
- if (!subscr->sgsn_data->mm && !mmctx->subscr) {
- mmctx->subscr = subscr_get(subscr);
- mmctx->subscr->sgsn_data->mm = mmctx;
- }
-
sgsn_auth_update(mmctx);
}