From 5bc43cd107597b78f701f77c7fd4cce8f923dce5 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 13 Jul 2018 16:14:18 +0200 Subject: codec_pref: check bts codec support The vty option bts->codec-support allows the user to set the supported codecs per BTS level. However, those values are currently only used to make the handover decision but the logic that handles the BSSMAP ASSIGNMENT REQUEST does not check those flags. - Do not ignore bts->codec-support flags on BSSMAP ASSIGNMENT REQUEST Change-Id: I285234e9c81de74d9fb9907fca2c443b08537435 Closes: OS#3361 --- include/osmocom/bsc/codec_pref.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/osmocom/bsc/codec_pref.h') diff --git a/include/osmocom/bsc/codec_pref.h b/include/osmocom/bsc/codec_pref.h index 6933ceacd..bbda14e47 100644 --- a/include/osmocom/bsc/codec_pref.h +++ b/include/osmocom/bsc/codec_pref.h @@ -1,6 +1,6 @@ #pragma once -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, - const struct bsc_msc_data *msc); +struct gsm_bts; + +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, const struct bsc_msc_data *msc, struct gsm_bts *bts); -- cgit v1.2.3