diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-06-29 21:42:58 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-06 14:48:10 +0200 |
commit | 33fcae2b40b0eedefaa5d7be434d56acae94063c (patch) | |
tree | 29d01cef55f18754cac2a077ea59832c60c67477 | |
parent | 40d87ee80b6f3e65b7326b81b9ab6052c0675c42 (diff) |
TRX: No need to set mode and cipher for PDCH
-rw-r--r-- | src/osmo-bts-trx/scheduler.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/scheduler.c b/src/osmo-bts-trx/scheduler.c index 5a22c5c3..bf5d7d96 100644 --- a/src/osmo-bts-trx/scheduler.c +++ b/src/osmo-bts-trx/scheduler.c @@ -2518,6 +2518,10 @@ int trx_sched_set_mode(struct trx_l1h *l1h, uint8_t chan_nr, uint8_t rsl_cmode, int rc = -EINVAL; struct trx_chan_state *chan_state; + /* no mode for PDCH */ + if (trx_sched_multiframes[l1h->mf_index[tn]].pchan == GSM_PCHAN_PDCH) + return 0; + /* look for all matching chan_nr/link_id */ for (i = 0; i < _TRX_CHAN_MAX; i++) { if (trx_chan_desc[i].chan_nr == (chan_nr & 0xf8) @@ -2573,6 +2577,10 @@ int trx_sched_set_cipher(struct trx_l1h *l1h, uint8_t chan_nr, int downlink, int rc = -EINVAL; struct trx_chan_state *chan_state; + /* no cipher for PDCH */ + if (trx_sched_multiframes[l1h->mf_index[tn]].pchan == GSM_PCHAN_PDCH) + return 0; + /* no algorithm given means a5/0 */ if (algo <= 0) algo = 0; |