aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-06-02 20:43:57 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-01-12 03:28:14 +0100
commit531ebc3abfd6875d4839acf44546b2870f138fe8 (patch)
treefd36b700f8d43d0584090476d80efc7d112d7a34
parent1016d94801309bb8cf4297cf39170ae0d2d494ae (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 aa72d2ea5..ba1976ae3 100644
--- a/src/libbsc/abis_rsl.c
+++ b/src/libbsc/abis_rsl.c
@@ -1510,6 +1510,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);