aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-10-23 09:33:19 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2018-10-24 09:22:41 +0200
commit9108d47f4a12acb2ee7d27bd4e7df001a9966bdb (patch)
treef8f7cec2c222f4f94a791aa78da94cde441fa740 /tests
parente4faf59dfd4e1176bf9a94ad5f0c2238ab8aa0b5 (diff)
lchan_fsm: generate proper multirate configuration IE on RSL
During the generation of the multirate configuration IE in the channel activation message that is sent over RSL, all AMR rates except the highest one are trimmed. This was to ensure that the multirate configuration IE only contains one codec rate per active set. Lets fix that and generate a proper IE with threshold and hysteresis values. - extend lchan_mr_config so that it can generate a full multirate configuration IE Change-Id: I7f9f8e8d9e2724cbe3ce2f3599bc0e5185fd8453 Related: OS#3529
Diffstat (limited to 'tests')
-rw-r--r--tests/handover/handover_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index 76e5fe132..7cb4086bb 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -224,6 +224,12 @@ void create_conn(struct gsm_lchan *lchan)
struct gsm_network *net = lchan->ts->trx->bts->network;
struct gsm_subscriber_connection *conn;
struct mgcp_client *fake_mgcp_client = (void*)talloc_zero(net, int);
+ uint8_t *amr_conf;
+
+ /* HACK: lchan_fsm.c requires some AMR codec rates to be enabled,
+ * lets pretend that all AMR codec rates are allowed */
+ amr_conf = (uint8_t*) &fake_msc_data.amr_conf;
+ amr_conf[1] = 0xff;
conn = bsc_subscr_con_allocate(net);