diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-06-29 21:42:58 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2014-04-06 08:58:13 +0200 |
commit | e7df709ec591d83d2152d4b2b4497aeccc96c2a7 (patch) | |
tree | 0e9d8b9c9258683c55c7c6a1f656e08e582a8015 /src/osmo-bts-trx | |
parent | 29479a07fe544e12a8ccecebdb431c0311cc07cc (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; |