summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-31 11:50:35 +0200
committerIvan Kluchnikov <kluchnikovi@gmail.com>2014-05-06 17:22:46 +0400
commit73e306667079804d55f3712bc35f7a73f8355300 (patch)
tree306259b129df42d7f743c3281b6c914edb3c7813
parent34c6070d9d1814f9d62c455975d43b74157ca5e3 (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 6a9404e9c..3ca37cf50 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -3028,7 +3028,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 {