diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-02-11 21:42:35 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2014-04-06 08:57:11 +0200 |
commit | 8e756abf9a6e1531ead7cd014928eec0b62e9188 (patch) | |
tree | 9ea2e25460d792b4a34313ca5a85c31511029f4b | |
parent | 213f4325e274242121c54485ce7ec5c3654a1355 (diff) |
TRX: Fixed swapped stealing bits
Thanx to Sylvain for pointing to this bug.
-rw-r--r-- | src/osmo-bts-trx/tch_fr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osmo-bts-trx/tch_fr.c b/src/osmo-bts-trx/tch_fr.c index 6b3be24c..cfaf18ba 100644 --- a/src/osmo-bts-trx/tch_fr.c +++ b/src/osmo-bts-trx/tch_fr.c @@ -120,10 +120,10 @@ tch_fr_burst_unmap(sbit_t *iB, sbit_t *eB, sbit_t *h, int odd) iB[i] = eB[i+2]; if (h && !odd) - *h = eB[57]; + *h = eB[58]; if (h && odd) - *h = eB[58]; + *h = eB[57]; } static void @@ -138,9 +138,9 @@ tch_fr_burst_map(ubit_t *iB, ubit_t *eB, ubit_t *h, int odd) eB[i+2] = iB[i]; if (h && !odd) - eB[57] = *h; - if (h && odd) eB[58] = *h; + if (h && odd) + eB[57] = *h; } /* this corresponds to the bit-lengths of the individual codec |