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
This commit is contained in:
Alexander Chemeris 2020-05-13 22:38:08 +03:00 committed by laforge
parent ecfb0d68d7
commit 2ac8f91ea6
2 changed files with 8 additions and 0 deletions

View File

@ -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)
{

View File

@ -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().