aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-05-27 00:15:51 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2021-06-10 16:15:35 +0200
commite324badbb989e9b389750d9a052f528af1b4f4b8 (patch)
tree5955cc077286f48b5f2ce654daf32ff9b4136c92
parentf24e61857a1fc008b594a5d7edf0dfc6d4d39122 (diff)
rsl_lchan_lookup(): add comment explaining ts_is_capable_of_pchan()
-rw-r--r--src/osmo-bsc/bts_trx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bsc/bts_trx.c b/src/osmo-bsc/bts_trx.c
index 8d47ba599..3f73f7f25 100644
--- a/src/osmo-bsc/bts_trx.c
+++ b/src/osmo-bsc/bts_trx.c
@@ -156,6 +156,10 @@ struct gsm_lchan *rsl_lchan_lookup(struct gsm_bts_trx *trx, uint8_t chan_nr,
if (rc)
*rc = -EINVAL;
+ /* Why call ts_is_capable_of_pchan() here? Dynamic timeslots may receive RSL Channel Activation ACK on a
+ * timeslot that is in transition between pchan modes. That ACK actually confirms the pchan switch, so instead
+ * of checking the current pchan mode, we must allow any pchans that a dyn TS is capable of. */
+
switch (cbits) {
case ABIS_RSL_CHAN_NR_CBITS_Bm_ACCHs:
lch_idx = 0; /* TCH/F */