aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-06-02 20:43:57 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2013-07-29 12:44:31 +0200
commit810b3e69629402f775f7759b33e394f1496ffda3 (patch)
tree350979b5c8e48b1c4c46dea8686b9ea062d1063f
parent149db9290fb3b722f1c01553dc8d7ffa2317281a (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--openbsc/src/libbsc/abis_rsl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 1c34b9e1f..0040c1759 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/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);