From c4338deee9f3928eae61689687a1ff7ffee0d7b8 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 24 Dec 2015 00:40:52 +0100 Subject: hnbgw: Bring all parts together We now have the RUA and SUA parts interconnected by the context ID mapper, and should be able to pass messages back and forward between both sides. Unfortunately this touches a bit of everything, but the structures are all still very much in flux. Hopefully they will start to stabilize at some point soon... --- src/hnbgw_hnbap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hnbgw_hnbap.c') diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index fb7cfab..f797992 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -169,7 +169,7 @@ static int hnbgw_rx_ue_register_req(struct hnb_context *ctx, ANY_t *in) DEBUGP(DHNBAP, "UE-REGSITER-REQ ID_type=%d imsi=%s cause=%ld\n", ies.uE_Identity.present, imsi, ies.registration_Cause); - ue = ue_context_by_imsi(imsi); + ue = ue_context_by_imsi(ctx->gw, imsi); if (!ue) ue = ue_context_alloc(ctx, imsi); @@ -193,7 +193,7 @@ static int hnbgw_rx_ue_deregister(struct hnb_context *ctx, ANY_t *in) DEBUGP(DHNBAP, "UE-DE-REGSITER context=%ld cause=%ld\n", ctxid, ies.cause); - ue = ue_context_by_id(ctxid); + ue = ue_context_by_id(ctx->gw, ctxid); if (ue) ue_context_free(ue); -- cgit v1.2.3