aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-09-10 18:28:49 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-09-12 01:34:37 +0200
commit8e2a0ee8e275686d3cc11ee00dbffa64380953c5 (patch)
tree627daa7d4d0862d3c1a1416c0bc5a7506fd920ba /src
parent790212fcaf40a9078b8ed2ed41272bc5873c356e (diff)
iu_client: allow to control the notifications
The iu_client is informing the library user about global event. In prepration to the tx_iu_release_free() call allow to disable upstream notificatiosn Change-Id: Ic93ef6fd54c995405e9c37a5e0c53f81a89850b7
Diffstat (limited to 'src')
-rw-r--r--src/iu_client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iu_client.c b/src/iu_client.c
index ec5290f..38c8a1d 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -116,6 +116,9 @@ static int global_iu_event(struct ranap_ue_conn_ctx *ue_ctx,
if (!global_iu_event_cb)
return 0;
+ if (!ue_ctx->notification)
+ return 0;
+
return global_iu_event_cb(ue_ctx, type, data);
}
@@ -125,6 +128,7 @@ static struct ranap_ue_conn_ctx *ue_conn_ctx_alloc(struct ranap_iu_rnc *rnc, uin
ctx->rnc = rnc;
ctx->conn_id = conn_id;
+ ctx->notification = true;
llist_add(&ctx->list, &ue_conn_ctx_list);
return ctx;