diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-02-03 18:29:00 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-02-03 18:29:00 +0100 |
commit | 5f8c85bf9cf740676905f9fad5d97d4a8f518b1e (patch) | |
tree | 6d2342023b78143a54e757aa8ffe223e35172575 /src/osmo-bts-octphy/l1_oml.c | |
parent | 3ca59512d2f4eb1f87699e8fada67f33674918b4 (diff) |
octphy: Look-up the right timeslot and then the logical chan
Use the right identifier for the timeslot and not the trx number
which would always use ts==0 on the first trx. This should fix
ciphering issues for TS>0 (e.g. SDCCH8 on TS==1)
Diffstat (limited to 'src/osmo-bts-octphy/l1_oml.c')
-rw-r--r-- | src/osmo-bts-octphy/l1_oml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-octphy/l1_oml.c b/src/osmo-bts-octphy/l1_oml.c index 0a2b9ef7..318c384e 100644 --- a/src/osmo-bts-octphy/l1_oml.c +++ b/src/osmo-bts-octphy/l1_oml.c @@ -471,7 +471,7 @@ static int set_ciph_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp, void *d } OSMO_ASSERT(pcr->TrxId.byTrxId == trx->nr); - ts = &trx->ts[pcr->TrxId.byTrxId]; + ts = &trx->ts[pcr->PchId.byTimeslotNb]; /* for some strange reason the response does not tell which * sub-channel, only th request contains this information :( */ lchan = &ts->lchan[(unsigned long) data]; |