diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-06-29 21:42:58 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-22 16:41:29 +0200 |
commit | ee479133891317be37b7fc850e6cb945ef0c9f38 (patch) | |
tree | 6e7d4ca40a07173140170c226553a2d432694666 /src/osmo-bts-trx | |
parent | f5aaf523c58dd7bc2f57f840b717da359d08bb5c (diff) |
TRX: No need to set mode and cipher for PDCH
Diffstat (limited to 'src/osmo-bts-trx')
-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; |