From 470221575deaa14c670a5d4233df80119599141d Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 19 Dec 2018 18:51:00 +0100 Subject: LCLS: enc/dec entire parameter set instead of GCR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In 3GPP TS 48.008 the Global Call Reference IE is only used in HANDOVER REQUEST (§3.2.1.8) and ASSIGNMENT REQUEST (§3.2.1.1) messages which also include LCLS Config and CSC parameters. Hence, there's no point in using GCR encode/decode functions alone. Introduce gsm0808_dec_lcls() and gsm0808_enc_lcls() as trivial wrappers on top of GCR enc/dec routines which are made static. Adjust tests accordingly. Test output intentionally left unchanged. Change-Id: Icfbb2404e1a1d500243e2071173299b557369335 --- include/osmocom/gsm/gsm0808_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/osmocom/gsm/gsm0808_utils.h') diff --git a/include/osmocom/gsm/gsm0808_utils.h b/include/osmocom/gsm/gsm0808_utils.h index 22050b54..4a2233e7 100644 --- a/include/osmocom/gsm/gsm0808_utils.h +++ b/include/osmocom/gsm/gsm0808_utils.h @@ -84,8 +84,8 @@ uint8_t gsm0808_enc_aoip_trasp_addr(struct msgb *msg, int gsm0808_dec_aoip_trasp_addr(struct sockaddr_storage *ss, const uint8_t *elem, uint8_t len); -uint8_t gsm0808_enc_gcr(struct msgb *msg, const struct osmo_gcr_parsed *g); -int gsm0808_dec_gcr(struct osmo_gcr_parsed *g, const struct tlv_parsed *tp); +uint8_t gsm0808_enc_lcls(struct msgb *msg, const struct osmo_lcls *lcls); +int gsm0808_dec_lcls(struct osmo_lcls *lcls, const struct tlv_parsed *tp); uint8_t gsm0808_enc_speech_codec(struct msgb *msg, const struct gsm0808_speech_codec *sc); -- cgit v1.2.3