summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-01-25 16:19:20 +0100
committerMax <msuraev@sysmocom.de>2017-03-07 15:11:14 +0100
commitabf53d87b6648f2d42562c5699e9035afd92e608 (patch)
tree472d668f32d4bf53a2de8a3e5de1bb34bb7084c2
parent0b61932e7f1efd8d6f914da48d9304ff31c9d6d1 (diff)
Add MS time. offset to gsm_lchan
Add MS TIMING OFFSET (3GPP TS 48.058 § 8.4.8) and P offset (3GPP TS 45.010 § 1.2) which can be used to compute MS TO from known TA. This will be used by osmo-bts (see I4dfe5c48834a083e757d5de3236a02e15a238b28) to provide MS TO as part of RSL MEASUREMENT RESULT. Change-Id: I8bda57c8d6c15bbb803eca708931556dae118a00 Related: OS#1574
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index 91bdfce..7c469ee 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -327,6 +327,12 @@ struct gsm_lchan {
uint8_t last_cmr;
uint32_t last_fn;
} tch;
+
+ /* 3GPP TS 48.058 § 9.3.37: [0; 255] ok, -1 means invalid*/
+ int16_t ms_t_offs;
+ /* 3GPP TS 45.010 § 1.2 round trip propagation delay (in symbols) or -1 */
+ int16_t p_offs;
+
/* BTS-side ciphering state (rx only, bi-directional, ...) */
uint8_t ciph_state;
uint8_t ciph_ns;