aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-05-30 09:57:55 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-01-19 16:03:16 +0100
commita49d7b26846d524a6b602cefd9568976d3bd2525 (patch)
tree40d8cc7bb7c9d0053cfeaf8a683892676a4476a9
parente25018b8c1b24f049ec38c6085a8c4ba2d983185 (diff)
HO: Send Channel Mode and Multirate IE along with handover command
This is needed, if the channel mode should change when doing handover. A change in channel mode makes sense, if available resources at the new BTS are different. Change-Id: Ib6b17a9be252f1655006ab6773483868017d7926
-rw-r--r--src/libbsc/gsm_04_08_utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libbsc/gsm_04_08_utils.c b/src/libbsc/gsm_04_08_utils.c
index 414fd6d47..b17e58e79 100644
--- a/src/libbsc/gsm_04_08_utils.c
+++ b/src/libbsc/gsm_04_08_utils.c
@@ -406,6 +406,13 @@ int gsm48_send_ho_cmd(struct gsm_lchan *old_lchan, struct gsm_lchan *new_lchan,
}
/* FIXME: optional bits for type of synchronization? */
+ msgb_tv_put(msg, GSM48_IE_CHANMODE_1, new_lchan->tch_mode);
+
+ /* in case of multi rate we need to attach a config */
+ if (new_lchan->tch_mode == GSM48_CMODE_SPEECH_AMR)
+ msgb_tlv_put(msg, GSM48_IE_MUL_RATE_CFG, new_lchan->mr_ms_lv[0],
+ new_lchan->mr_ms_lv + 1);
+
return gsm48_sendmsg(msg);
}