aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/osmo_bsc_bssap.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-21 21:13:00 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-22 15:15:11 +0000
commit31a6368703847181f5513939fc6f7a4b5e04242a (patch)
treecea04a4437b3288e387732a7a85c0e42b738b67c /src/osmo-bsc/osmo_bsc_bssap.c
parentb360ec1b4a612e475d3216f190d0a8aad219c2cc (diff)
BSSAP: document match_codec_pref() more thoroughly
Diffstat (limited to 'src/osmo-bsc/osmo_bsc_bssap.c')
-rw-r--r--src/osmo-bsc/osmo_bsc_bssap.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c
index 04847b2fb..3cd605129 100644
--- a/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/src/osmo-bsc/osmo_bsc_bssap.c
@@ -153,8 +153,14 @@ static bool test_codec_pref(const struct gsm0808_channel_type *ct,
return false;
}
-/* Helper function for bssmap_handle_assignm_req(), matches the codec
- * preferences from the MSC with the codec preferences */
+/*! Helper function for bssmap_handle_assignm_req(), matches the codec
+ * preferences from the MSC with the codec preferences
+ * \param[out] full_rate '1' if full-rate, '0' if half-rate, '-1' if no match
+ * \param[out] chan_mode GSM 04.08 channel mode
+ * \param[in] ct GSM 08.08 channel type
+ * \param[in] scl GSM 08.08 speech codec list
+ * \param[in] msc MSC data [for configuration]
+ * \returns 0 on success, -1 in case no match was found */
static int match_codec_pref(int *full_rate, enum gsm48_chan_mode *chan_mode,
const struct gsm0808_channel_type *ct,
const struct gsm0808_speech_codec_list *scl,