aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/gsm_data.h
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 /include/osmo-bts/gsm_data.h
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 'include/osmo-bts/gsm_data.h')
-rw-r--r--include/osmo-bts/gsm_data.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index fa6ea027..e2a1ae96 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -254,6 +254,11 @@ struct lchan_power_ctrl_state {
uint8_t max;
};
+struct lchan_ta_ctrl_state {
+ /* Currently requested TA */
+ uint8_t current;
+};
+
struct gsm_lchan {
/* The TS that we're part of */
struct gsm_bts_trx_ts *ts;
@@ -288,8 +293,6 @@ struct gsm_lchan {
struct osmo_rtp_socket *rtp_socket;
} abis_ip;
- uint8_t rqd_ta;
-
char *name;
/* For handover, activation is described in 3GPP TS 48.058 4.1.3 and 4.1.4:
@@ -403,6 +406,9 @@ struct gsm_lchan {
/* RTP header Marker bit to indicate beginning of speech after pause */
bool rtp_tx_marker;
+ /* TA Control Loop */
+ struct lchan_ta_ctrl_state ta_ctrl;
+
/* MS/BS power control state */
struct lchan_power_ctrl_state ms_power_ctrl;
struct lchan_power_ctrl_state bs_power_ctrl;