diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-09 16:38:07 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-13 12:53:44 +0200 |
commit | 22a160bd24dc3d1cf8bd0d8c742c8e9419c6603b (patch) | |
tree | a5e989e6ad2e156fda88a58f27cdf89130389576 /src/common/rsl.c | |
parent | f54a7462dd4fd38675438c6336e0693d7d32a8cb (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/rsl.c')
-rw-r--r-- | src/common/rsl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c index f585ec45..ca40e499 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -1512,7 +1512,7 @@ static void clear_lchan_for_pdch_activ(struct gsm_lchan *lchan) memset(&lchan->ho, 0, sizeof(lchan->ho)); memset(&lchan->ms_power_ctrl, 0, sizeof(lchan->ms_power_ctrl)); memset(&lchan->bs_power_ctrl, 0, sizeof(lchan->bs_power_ctrl)); - lchan->rqd_ta = 0; + lchan->ta_ctrl.current = 0; copy_sacch_si_to_lchan(lchan); memset(&lchan->tch, 0, sizeof(lchan->tch)); } @@ -1721,7 +1721,7 @@ static int rsl_rx_chan_activ(struct msgb *msg) } /* 9.3.24 Timing Advance */ if (TLVP_PRES_LEN(&tp, RSL_IE_TIMING_ADVANCE, 1)) - lchan->rqd_ta = *TLVP_VAL(&tp, RSL_IE_TIMING_ADVANCE); + lchan->ta_ctrl.current = *TLVP_VAL(&tp, RSL_IE_TIMING_ADVANCE); /* 9.3.31 (TLV) MS Power Parameters IE (vendor specific) */ if ((ie = TLVP_GET(&tp, RSL_IE_MS_POWER_PARAM)) != NULL) { |