From 9ea431123d0fd114cef967f917ca329164874da8 Mon Sep 17 00:00:00 2001 From: Neels Janosch Hofmeyr Date: Mon, 29 Aug 2022 16:49:14 +0200 Subject: [PATCH] fix regression: in RUA, do PFCP only when enabled Tested in ttcn3, by test cases not ready for submission (would require enabling/disabling PFCP while osmo-hnbgw is running). ttcn3 tests in I511e758807e0512c18f3f9e0a8c4699b9a3f5992 Related: SYS#6093 Change-Id: I39b9632f8524a9f3455c1a2d7611bfe8ba07c2fd --- src/osmo-hnbgw/hnbgw_rua.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osmo-hnbgw/hnbgw_rua.c b/src/osmo-hnbgw/hnbgw_rua.c index 7d5492f..f4e24d7 100644 --- a/src/osmo-hnbgw/hnbgw_rua.c +++ b/src/osmo-hnbgw/hnbgw_rua.c @@ -291,7 +291,8 @@ int rua_to_scu(struct hnb_context *hnb, talloc_free(message); #if ENABLE_PFCP - } else { + } else if (hnb_gw_is_gtp_mapping_enabled(hnb->gw)) { + /* map->is_ps == true and PFCP is enabled in osmo-hnbgw.cfg */ message = talloc_zero(map, ranap_message); rc = ranap_cn_rx_co_decode(map, message, msgb_l2(prim->oph.msg), msgb_l2len(prim->oph.msg));