aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIvan Kluchnikov <kluchnikovi@gmail.com>2017-08-10 17:34:05 +0300
committerNeels Hofmeyr <neels@hofmeyr.de>2017-08-27 03:52:47 +0200
commit04fc75f85661c7b03214831e832695a1959bb901 (patch)
tree50c0aa60b05706de131b502cc851de51164492d3 /src
parent8392602302cd86abd081f23324e1d788e62c7a88 (diff)
handover_logic: set correct link to bts for subscriber_connection in case of moving this connection to another bts
In case of successful completion of handover gsm_subscriber_connection could be moved from one bts to another, so connection link to bts should be replaced by link to bts, which owns new_lchan. This bug was detected, because conn->bts->nr is used in call control log messages and wrong number of bts was observed in these messages after handover. Change-Id: Idc7dd412b7580c451e716b73ef7549826c60b0d9
Diffstat (limited to 'src')
-rw-r--r--src/libbsc/handover_logic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libbsc/handover_logic.c b/src/libbsc/handover_logic.c
index c03563f6b..57d1dcd31 100644
--- a/src/libbsc/handover_logic.c
+++ b/src/libbsc/handover_logic.c
@@ -282,6 +282,7 @@ static int ho_gsm48_ho_compl(struct gsm_lchan *new_lchan)
new_lchan->conn->ho_lchan = NULL;
new_lchan->conn->lchan = new_lchan;
+ new_lchan->conn->bts = new_lchan->ts->trx->bts;
ho->old_lchan->conn = NULL;
lchan_release(ho->old_lchan, 0, RSL_REL_LOCAL_END);