aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/handover_fsm.c
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2020-08-20 15:37:35 +0200
committerlaforge <laforge@osmocom.org>2020-08-24 07:41:43 +0000
commitaa420cec14635614ab2f1c825c322668b524b42f (patch)
treecba90bdcb16c645df56592d7bf6fbd0532afc913 /src/osmo-bsc/handover_fsm.c
parentbf2a4b69d86337ff56ec5cdf02a4fb12d5cd6217 (diff)
Add bts counters to count BTS events where we don't have a bts
In some (error-) cases we might be unable to determine which BTS to use when counting handover events. We don't want to loose these events because then ctr(bsc) == sum(ctr(bsc->bts)) would not be true anymore. Those events are now counted by a counter in struct gsm_network which uses an index that is out of range for regular BTS (65536). Change-Id: Ic0f3edd5dc014c4eac5e8423133633a3e5d4c13e Related: SYS#4877
Diffstat (limited to 'src/osmo-bsc/handover_fsm.c')
-rw-r--r--src/osmo-bsc/handover_fsm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bsc/handover_fsm.c b/src/osmo-bsc/handover_fsm.c
index e238d837e..78dbd3308 100644
--- a/src/osmo-bsc/handover_fsm.c
+++ b/src/osmo-bsc/handover_fsm.c
@@ -96,6 +96,8 @@
bts_ctr_description[counter].description); \
if (bts) \
rate_ctr_inc(&bts->bts_ctrs->ctr[counter]); \
+ else \
+ rate_ctr_inc(&conn->network->bts_unknown_ctrs->ctr[counter]); \
} while(0)
#define ho_count(bts, counter) do { \