aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-06-02 20:43:57 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-12-01 03:37:43 +0100
commitcd055f398763d8ad21c1d322747da396e64de47c (patch)
tree75c0f6ffee1441ee190189bfbeece20a15719fbc
parent1be6ea8fa8fd471c8a58e3a9cb9972217a72c71f (diff)
HO: Always update rqd_ta after receiving measurement report
The up-to-date rqd_ta is required for assignment command. If the phone moves, the timing advance might change. The rqd_ta will be updated by each measurement report.
-rw-r--r--src/libbsc/abis_rsl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libbsc/abis_rsl.c b/src/libbsc/abis_rsl.c
index 1c34b9e1f..0040c1759 100644
--- a/src/libbsc/abis_rsl.c
+++ b/src/libbsc/abis_rsl.c
@@ -1116,6 +1116,8 @@ static int rsl_rx_meas_res(struct msgb *msg)
if (msg->lchan->ts->trx->bts->type == GSM_BTS_TYPE_BS11
|| msg->lchan->ts->trx->bts->type == GSM_BTS_TYPE_NOKIA_SITE)
mr->ms_l1.ta >>= 2;
+ /* store TA for next assignment/handover */
+ mr->lchan->rqd_ta = mr->ms_l1.ta;
}
if (TLVP_PRESENT(&tp, RSL_IE_L3_INFO)) {
msg->l3h = (uint8_t *) TLVP_VAL(&tp, RSL_IE_L3_INFO);