aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-09-09 16:38:07 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2021-09-13 12:53:44 +0200
commit22a160bd24dc3d1cf8bd0d8c742c8e9419c6603b (patch)
treea5e989e6ad2e156fda88a58f27cdf89130389576 /src/common/l1sap.c
parentf54a7462dd4fd38675438c6336e0693d7d32a8cb (diff)
lchan: Move TA CTRL param to its own substruct
Field is renamed to look similar to similar fields in power control loop. This is a preparation commit, next one will add functionality to skip SACCH blocksi (P_CON_INTERVAL). Related: SYS#5371 Change-Id: I169ce58ab827e38b64f4b15f935097a9118fa118
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 92abbfff..2e122e35 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1186,7 +1186,7 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx,
p[0] = lchan->ms_power_ctrl.current;
if (lchan->repeated_ul_sacch_active)
p[0] |= 0x40; /* See also: 3GPP TS 44.004, section 7.1 */
- p[1] = lchan->rqd_ta;
+ p[1] = lchan->ta_ctrl.current;
le = &lchan->lapdm_ch.lapdm_acch;
if (lchan->repeated_acch_capability.dl_sacch) {
/* Check if MS requests SACCH repetition and update state accordingly */
@@ -1605,7 +1605,7 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx,
rsl_tx_meas_res(lchan, NULL, 0, le);
radio_link_timeout(lchan, true);
- lchan_ms_ta_ctrl(lchan, lchan->rqd_ta, lchan->meas.ms_toa256);
+ lchan_ms_ta_ctrl(lchan, lchan->ta_ctrl.current, lchan->meas.ms_toa256);
lchan_ms_pwr_ctrl(lchan, lchan->ms_power_ctrl.current, data_ind->rssi, data_ind->lqual_cb);
}
return -EINVAL;