summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-04-10 19:23:45 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-04-26 20:36:39 +0200
commit302aafc3e22d552638120a17b1730b585767443e (patch)
treea0f584d087d2129c331ef86277a82cc3486d15b5 /include/osmocom
parentaffbb2064669a58aea4a18f773eed90b15dffcf9 (diff)
BSSMAP: tweaks
Change two instances of Speech Version values to enum gsm0808_permitted_speech. It is often not trivial to find the right values for a uint8_t member, giving the enum name makes it a lot easier/safer to use. In gsm0808_create_handover_required(), use msgb_tv_put() so that the enum's storage size doesn't matter. (Already used for handover_performed) Fix typo in doc of gsm0808_create_handover_required(). Change-Id: I6387836bab76e1fa42daa0f42ab94fc14b70b112
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/gsm/gsm0808.h4
1 files changed, 2 insertions, 2 deletions
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;