From 11e4e41ffcd839cf6a570a2c9541e97495db96b4 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 20 Apr 2017 13:07:58 +0200 Subject: Fix MS TO measurement representation * set proper flag when saving MS Timing Offset * use gsm_subscriber's IMSI or lchan's name if bsc_subscriber is unknown * add comments with spec reference * store/display MS Timing Offset instead of raw Timing Offset field from RSL * Compute MS Timing Offset [-63; 192] from Timing Offset field [0; 255], adjust structure gsm_meas_rep with proper type to store it Change-Id: I7e003d23a6edb714c5f17688fd6a8edac131161d Related: OS#1574 --- openbsc/include/openbsc/meas_rep.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/meas_rep.h b/openbsc/include/openbsc/meas_rep.h index 6d36f347f..b0c03f0bb 100644 --- a/openbsc/include/openbsc/meas_rep.h +++ b/openbsc/include/openbsc/meas_rep.h @@ -39,7 +39,8 @@ struct gsm_meas_rep { struct gsm_meas_rep_unidir dl; uint8_t bs_power; - uint8_t ms_timing_offset; + /* according to 3GPP TS 48.058 ยง MS Timing Offset [-63; 192] */ + int16_t ms_timing_offset; struct { int8_t pwr; /* MS power in dBm */ uint8_t ta; /* MS timing advance */ -- cgit v1.2.3