From 810b3e69629402f775f7759b33e394f1496ffda3 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 2 Jun 2013 20:43:57 +0200 Subject: 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. --- openbsc/src/libbsc/abis_rsl.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3