summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/l1ctl.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-02 19:57:55 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-02 19:57:55 +0200
commit9d90d1907b9d1013a07ef7a9c187f16bc29129fb (patch)
tree26ab4e3147b39e1c5dc3900eee9b8a8c48b982a6 /src/host/trxcon/l1ctl.c
parent96a8f288c66dee920f5705dd976f13593fc29104 (diff)
trxcon: Respect the tch_mode field of DM_EST_REQ
the initial tch_mode is not always 0 (signalling) but can very well be directly a codec mode, if the initial activation of the channel is in speech mode as opposed to signalling Change-Id: I96e4c89da1165e9c5287d863e0e65d811460c606
Diffstat (limited to 'src/host/trxcon/l1ctl.c')
-rw-r--r--src/host/trxcon/l1ctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 3de0cf68..a08c4605 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -543,8 +543,8 @@ static int l1ctl_rx_dm_est_req(struct l1ctl_link *l1l, struct msgb *msg)
chan_nr = ul->chan_nr;
LOGP(DL1C, LOGL_NOTICE, "Received L1CTL_DM_EST_REQ (arfcn=%u, "
- "chan_nr=0x%02x, tsc=%u)\n", (band_arfcn &~ ARFCN_FLAG_MASK),
- chan_nr, est_req->tsc);
+ "chan_nr=0x%02x, tsc=%u, tch_mode=0x%02x)\n", (band_arfcn &~ ARFCN_FLAG_MASK),
+ chan_nr, est_req->tsc, est_req->tch_mode);
if (est_req->h) {
LOGP(DL1C, LOGL_ERROR, "FHSS is not supported\n");
@@ -583,7 +583,7 @@ static int l1ctl_rx_dm_est_req(struct l1ctl_link *l1l, struct msgb *msg)
sched_trx_deactivate_all_lchans(ts);
/* Activate only requested lchans */
- rc = sched_trx_set_lchans(ts, chan_nr, 1);
+ rc = sched_trx_set_lchans(ts, chan_nr, 1, est_req->tch_mode);
if (rc) {
LOGP(DL1C, LOGL_ERROR, "Couldn't activate requested lchans\n");
rc = -EINVAL;