From 2ac8f91ea6212f089a0aa46102c5b803c9e8b6ae Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Wed, 13 May 2020 22:38:08 +0300 Subject: gsm0808_utils: Add gsm0808_get_cipher_reject_cause() back with a deprecation notice. In Change-Id Idf2b99e9ef014eba26e3d4f0f38c2714d3a0520a we accidentially removed this symbol, let's re-introduce it. Change-Id: I9fbcbcc6619ef0c63d3682fc86adc80045baab02 --- include/osmocom/gsm/gsm0808_utils.h | 3 +++ src/gsm/gsm0808_utils.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/include/osmocom/gsm/gsm0808_utils.h b/include/osmocom/gsm/gsm0808_utils.h index a8852e4a..59db6edc 100644 --- a/include/osmocom/gsm/gsm0808_utils.h +++ b/include/osmocom/gsm/gsm0808_utils.h @@ -155,6 +155,9 @@ static inline bool gsm0808_cause_ext(enum gsm0808_cause cause) return (cause & 0x80) && !(cause & 0x0F); } +int gsm0808_get_cipher_reject_cause(const struct tlv_parsed *tp) +OSMO_DEPRECATED("Use gsm0808_get_cause() instead"); + /*! \returns 3GPP TS 48.008 3.2.2.49 Current Channel Type 1 from enum gsm_chan_t. */ static inline uint8_t gsm0808_current_channel_type_1(enum gsm_chan_t type) { diff --git a/src/gsm/gsm0808_utils.c b/src/gsm/gsm0808_utils.c index 6f3c07a4..6bf771f8 100644 --- a/src/gsm/gsm0808_utils.c +++ b/src/gsm/gsm0808_utils.c @@ -1563,6 +1563,11 @@ int gsm48_mr_cfg_from_gsm0808_sc_cfg(struct gsm48_multi_rate_conf *cfg, return 0; } +int gsm0808_get_cipher_reject_cause(const struct tlv_parsed *tp) +{ + return gsm0808_get_cause(tp); +} + /*! Print a human readable name of the cell identifier to the char buffer. * This is useful both for struct gsm0808_cell_id and struct gsm0808_cell_id_list2. * See also gsm0808_cell_id_name() and gsm0808_cell_id_list_name(). -- cgit v1.2.3