aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-09-18 04:02:13 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-10-07 11:40:12 +0000
commit4c5fd38b3b8fc9c351e2e7a929bcb6da10a28fc6 (patch)
treec7998fe22ac8e749eb2817376c13d13a89880a9b /include
parent86ce105038275f8e32a4bcdd55ed4f1aa225615a (diff)
refactor paging: add bsc_subscr to bsc_paging_params
Get a bsub once at start of paging. Change-Id: I13621cd51d934846ff6556e1f2f8839da73a5dbb
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/paging.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/osmocom/bsc/paging.h b/include/osmocom/bsc/paging.h
index cebdce393..cab54663b 100644
--- a/include/osmocom/bsc/paging.h
+++ b/include/osmocom/bsc/paging.h
@@ -33,10 +33,9 @@
struct bsc_msc_data;
#define LOG_PAGING(PARAMS, SUBSYS, LEVEL, fmt, args...) \
- LOGP(SUBSYS, LEVEL, "(msc%d) Paging: %s TMSI-0x%08x: " fmt, \
+ LOGP(SUBSYS, LEVEL, "(msc%d) Paging: %s: " fmt, \
(PARAMS)->msc ? (PARAMS)->msc->nr : -1, \
- osmo_mobile_identity_to_str_c(OTC_SELECT, &(PARAMS)->imsi), \
- (PARAMS)->tmsi, \
+ bsc_subscr_name((PARAMS)->bsub), \
##args)
#define LOG_PAGING_BTS(PARAMS, BTS, SUBSYS, LEVEL, fmt, args...) \
@@ -44,6 +43,7 @@ struct bsc_msc_data;
struct bsc_paging_params {
struct bsc_msc_data *msc;
+ struct bsc_subscr *bsub;
uint32_t tmsi;
struct osmo_mobile_identity imsi;
uint8_t chan_needed;
@@ -75,7 +75,7 @@ struct gsm_paging_request {
};
/* schedule paging request */
-int paging_request_bts(const struct bsc_paging_params *params, struct bsc_subscr *bsub, struct gsm_bts *bts);
+int paging_request_bts(const struct bsc_paging_params *params, struct gsm_bts *bts);
struct bsc_msc_data *paging_request_stop(struct gsm_bts *bts, struct bsc_subscr *bsub);