summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-01-28 11:51:24 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-01-28 11:59:51 +0100
commit86069143ff7b4ae0c4eabc80aff3a56db14a32a4 (patch)
treea6e80d5c6932ba0be20c091edbb8d3f5e0ec9459 /openbsc
parent44f0be88a3068cd49b9ab369ff4fc714a2fd1f43 (diff)
[gsm48] Use optional Chan Mode 1 for the assignment command
Specify how we intend to use the assigned channel. This is needed to make CC with early assignment work properly.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gsm_04_08_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gsm_04_08_utils.c b/openbsc/src/gsm_04_08_utils.c
index ce635637a..d0304af36 100644
--- a/openbsc/src/gsm_04_08_utils.c
+++ b/openbsc/src/gsm_04_08_utils.c
@@ -591,6 +591,8 @@ int gsm48_send_rr_ass_cmd(struct gsm_lchan *dest_lchan, struct gsm_lchan *lchan,
gsm48_chan_desc(&ass->chan_desc, lchan);
ass->power_command = power_command;
+ msgb_tv_put(msg, GSM48_IE_CHANMODE_1, lchan->tch_mode);
+
/* in case of multi rate we need to attach a config */
if (lchan->tch_mode == GSM48_CMODE_SPEECH_AMR) {
if (lchan->mr_conf.ver == 0) {