aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-08-29 23:27:21 +0000
committerNeels Hofmeyr <neels@hofmeyr.de>2020-08-31 18:01:17 +0200
commite6142d0e25da8da0f262fc5708bf83992a377ee4 (patch)
tree1bc0747f673b0f6993d1e4ec93a7de19018a11d9
parent01c06a916385676a09bc0e20bbe5b807b3aef4b2 (diff)
fix HO inter-BSC-IN target bts for counters
-rw-r--r--src/osmo-bsc/handover_fsm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo-bsc/handover_fsm.c b/src/osmo-bsc/handover_fsm.c
index 7e461477b..3975ed303 100644
--- a/src/osmo-bsc/handover_fsm.c
+++ b/src/osmo-bsc/handover_fsm.c
@@ -919,6 +919,11 @@ void handover_end(struct gsm_subscriber_connection *conn, enum handover_result r
if (hdc && hdc->on_handover_end)
hdc->on_handover_end(conn, result);
+ /* HO_INTER_BSC_IN has the source BTS on a remote BSS, so count all of those on the target BTS; also count
+ * errors onto the HO target BTS if no lchan was obtained. */
+ if (ho->scope & HO_INTER_BSC_IN)
+ bts = ho->new_bts;
+
ho_count_bsc(result_counter_BSC_HANDOVER(result));
ho_count_bsc(result_counter_bsc(ho->scope, result));
ho_count_bts(bts, result_counter_BTS_HANDOVER(result));