aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/paging.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-01-09 23:48:25 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-05-03 15:26:32 +0200
commitbf5e8e5f8ec1887d934aeec9c2c2334c638fc830 (patch)
treeef4db2301524dd6d72925d6e3af6ce320c89219e /src/libbsc/paging.c
parent0cbfacfc41843ba749f0b3e1e791c06a38603294 (diff)
associate conn with bsc subscriber where possible (TODO)neels/meas_feed
Various logging in the code (e.g. handover) attempts to log the subscriber information from conn->bsub, but so far, the only time we set conn->bsub is during paging. We do though get IMSI and/or TMSI information from Layer 3 Complete messaging, not only from the Paging Request, which is already used for IMSI filtering. Also extract TMSI and create a conn->bsub subscriber. <-- TODO Make sure conn->bsub also gets cleaned up by bsc_subscr_put() when the conn is freed. During gscon_cleanup, keep the conn->bsub as long as possible, to still allow logging the subscriber as context during teardown of other components. Change-Id: Icc20c141ec339385181949b93548a73121bb7615
Diffstat (limited to 'src/libbsc/paging.c')
-rw-r--r--src/libbsc/paging.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libbsc/paging.c b/src/libbsc/paging.c
index cdcae51f7..820921ced 100644
--- a/src/libbsc/paging.c
+++ b/src/libbsc/paging.c
@@ -388,6 +388,7 @@ void paging_request_stop(struct llist_head *bts_list,
struct gsm_bts *bts;
log_set_context(LOG_CTX_BSC_SUBSCR, bsub);
+ conn->bsub = bsc_subscr_get(bsub);
/* Stop this first and dispatch the request */
if (_bts) {