From 764b022fc69c4bb9816e12801186f8fa25f8dd72 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 11 May 2016 17:33:17 +0200 Subject: Add function to make Uplink Measurement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It assembles RSL Uplink Measurement IE according to 3GPP TS 08.58 ยง9.3.25. The function is based on lchan_build_rsl_ul_meas() from OsmoBTS but optionally includes DTX information. Change-Id: Ib37107bcc9909e5105ea711de42d3fb1db7e8d9e Reviewed-on: https://gerrit.osmocom.org/44 Tested-by: Jenkins Builder Reviewed-by: Harald Welte --- include/osmocom/gsm/meas_rep.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/osmocom/gsm/meas_rep.h') diff --git a/include/osmocom/gsm/meas_rep.h b/include/osmocom/gsm/meas_rep.h index 09c2c4f2..90c981dd 100644 --- a/include/osmocom/gsm/meas_rep.h +++ b/include/osmocom/gsm/meas_rep.h @@ -1,6 +1,7 @@ #pragma once #include +#include /* RX Level and RX Quality */ struct gsm_rx_lev_qual { @@ -24,3 +25,6 @@ enum meas_rep_field { MEAS_REP_UL_RXQUAL_FULL, MEAS_REP_UL_RXQUAL_SUB, }; + +size_t gsm0858_rsl_ul_meas_enc(struct gsm_meas_rep_unidir *mru, bool dtxd_used, + uint8_t *buf); -- cgit v1.2.3