diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-05-30 09:57:55 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2013-07-29 12:43:52 +0200 |
commit | c42c4da720ac18cde075fcd718ae4cc827cbf18e (patch) | |
tree | 588701211926ac39a9743f59f510b9193d9f0c63 | |
parent | ec1fcb9f5cc0e685ae7f5020a106c3b7c11d426f (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.
-rw-r--r-- | openbsc/src/libbsc/gsm_04_08_utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/gsm_04_08_utils.c b/openbsc/src/libbsc/gsm_04_08_utils.c index 6895b2e3e..1efd816ff 100644 --- a/openbsc/src/libbsc/gsm_04_08_utils.c +++ b/openbsc/src/libbsc/gsm_04_08_utils.c @@ -449,6 +449,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); } |