fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/31114 )
Change subject: trxcon: make l1sched_a5_burst_dec() accept l1sched_burst_ind ......................................................................
trxcon: make l1sched_a5_burst_dec() accept l1sched_burst_ind
Change-Id: I5dd16cff1c9730a496748681842f571d25653cb9 --- M src/host/trxcon/src/sched_trx.c 1 file changed, 5 insertions(+), 5 deletions(-)
Approvals: Jenkins Builder: Verified osmith: Looks good to me, approved pespin: Looks good to me, but someone else must approve
diff --git a/src/host/trxcon/src/sched_trx.c b/src/host/trxcon/src/sched_trx.c index 4cedd8a..d2040c5 100644 --- a/src/host/trxcon/src/sched_trx.c +++ b/src/host/trxcon/src/sched_trx.c @@ -623,20 +623,20 @@ }
static void l1sched_a5_burst_dec(struct l1sched_lchan_state *lchan, - uint32_t fn, sbit_t *burst) + struct l1sched_burst_ind *bi) { ubit_t ks[114]; int i;
/* Generate keystream for a DL burst */ - osmo_a5(lchan->a5.algo, lchan->a5.key, fn, ks, NULL); + osmo_a5(lchan->a5.algo, lchan->a5.key, bi->fn, ks, NULL);
/* Apply keystream over ciphertext */ for (i = 0; i < 57; i++) { if (ks[i]) - burst[i + 3] *= -1; + bi->burst[i + 3] *= -1; if (ks[i + 57]) - burst[i + 88] *= -1; + bi->burst[i + 88] *= -1; } }
@@ -782,7 +782,7 @@
/* Perform A5/X decryption if required */ if (lchan->a5.algo) - l1sched_a5_burst_dec(lchan, bi->fn, &bi->burst[0]); + l1sched_a5_burst_dec(lchan, bi);
/* Put burst to handler */ handler(lchan, bi);