summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-31 11:50:35 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2013-07-29 12:39:49 +0200
commit525f5294db7851797a94ac1a77221564b5c27bbf (patch)
tree0564853667228c71779e9d4a4bb6bb67da899b75
parentd52dbffa15d890b06388d2b8479aa256b984d952 (diff)
Fix: If half rate channel is used, indicate hr when modifying channel mode
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index b9b84e76a..463a09cae 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -2975,7 +2975,8 @@ static int _gsm48_lchan_modify(struct gsm_trans *trans, void *arg)
{
struct gsm_mncc *mode = arg;
- return gsm0808_assign_req(trans->conn, mode->lchan_mode, 1);
+ return gsm0808_assign_req(trans->conn, mode->lchan_mode,
+ trans->conn->lchan->type != GSM_LCHAN_TCH_H);
}
static struct downstate {