summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO-RELEASE2
-rw-r--r--include/osmocom/gsm/gsm0808.h4
-rw-r--r--src/gsm/gsm0808.c4
3 files changed, 6 insertions, 4 deletions
diff --git a/TODO-RELEASE b/TODO-RELEASE
index 7c81e323..db3be496 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -19,3 +19,5 @@ libosmocore osmo_quote_str(), On string truncation, these used to print a
osmo_quote_str_buf() truncated string. This is no longer the case. e.g. a string 'truncated' in a
9-char buffer used to print '"trunca"\0', which now becomes '"truncat\0'.
libosmocore osmo_quote_str_buf2() New function signature similar to snprintf(), for use with OSMO_STRBUF_APPEND().
+libosmogsm gsm0808_handover_required Storage size changed, speech_version_used now an enum.
+ gsm0808_handover_performed Storage size changed, speech_version_chosen now an enum.
diff --git a/include/osmocom/gsm/gsm0808.h b/include/osmocom/gsm/gsm0808.h
index a1345c38..0f2bf1fb 100644
--- a/include/osmocom/gsm/gsm0808.h
+++ b/include/osmocom/gsm/gsm0808.h
@@ -133,7 +133,7 @@ struct gsm0808_handover_required {
uint8_t current_channel_type_1;
bool speech_version_used_present;
- uint8_t speech_version_used;
+ enum gsm0808_permitted_speech speech_version_used;
bool old_bss_to_new_bss_info_present;
struct gsm0808_old_bss_to_new_bss_info old_bss_to_new_bss_info;
@@ -196,7 +196,7 @@ struct gsm0808_handover_performed {
uint8_t chosen_encr_alg;
bool speech_version_chosen_present;
- uint8_t speech_version_chosen;
+ enum gsm0808_permitted_speech speech_version_chosen;
bool speech_codec_chosen_present;
struct gsm0808_speech_codec speech_codec_chosen;
diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index 48730766..3307a5dd 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -822,7 +822,7 @@ static uint8_t put_old_bss_to_new_bss_information(struct msgb *msg,
/*! Create BSSMAP HANDOVER REQUIRED message.
* \param[in] params All information to be encoded.
- * \returns newly allocated msgb with BSSMAP REQUIRED message. */
+ * \returns newly allocated msgb with BSSMAP HANDOVER REQUIRED message. */
struct msgb *gsm0808_create_handover_required(const struct gsm0808_handover_required *params)
{
struct msgb *msg;
@@ -846,7 +846,7 @@ struct msgb *gsm0808_create_handover_required(const struct gsm0808_handover_requ
/* Speech Version (Used), 3.2.2.51 */
if (params->speech_version_used_present)
- msgb_tv_fixed_put(msg, GSM0808_IE_SPEECH_VERSION, 1, &params->speech_version_used);
+ msgb_tv_put(msg, GSM0808_IE_SPEECH_VERSION, params->speech_version_used);
if (params->old_bss_to_new_bss_info_present)
put_old_bss_to_new_bss_information(msg, &params->old_bss_to_new_bss_info);