From 9ab991191b901b362bc2bd3f6e78c600000a662d Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Sun, 14 Jun 2015 23:49:16 -0400 Subject: HACK: Do not discard GSM-FR frames with bad CRC. --- src/osmo-bts-trx/gsm0503_coding.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osmo-bts-trx/gsm0503_coding.c b/src/osmo-bts-trx/gsm0503_coding.c index 0b90174c..97a7f008 100644 --- a/src/osmo-bts-trx/gsm0503_coding.c +++ b/src/osmo-bts-trx/gsm0503_coding.c @@ -702,7 +702,7 @@ int tch_fr_decode(uint8_t *tch_data, sbit_t *bursts, int net_order, int efr, rv = osmo_crc8gen_check_bits(&gsm0503_tch_fr_crc3, d, 50, p); if (rv) { LOGP(DL1C, LOGL_NOTICE, "tch_fr_decode(): error checking CRC8 for the FR part of an %s frame\n", efr?"EFR":"FR"); - return -1; +// return -1; } @@ -717,7 +717,7 @@ int tch_fr_decode(uint8_t *tch_data, sbit_t *bursts, int net_order, int efr, 65, p); if (rv) { LOGP(DL1C, LOGL_NOTICE, "tch_fr_decode(): error checking CRC8 for the EFR part of an EFR frame\n"); - return -1; +// return -1; } tch_efr_reassemble(tch_data, s); @@ -731,7 +731,7 @@ int tch_fr_decode(uint8_t *tch_data, sbit_t *bursts, int net_order, int efr, len = 33; } - LOGP(DL1C, LOGL_NOTICE, "tch_fr_decode(): successfully decoded %s frame (%d/%d bits)\n", efr?"EFR":"FR", *n_errors, *n_bits_total); + LOGP(DL1C, LOGL_NOTICE, "tch_fr_decode(): decoded %s frame (%d/%d bits)\n", efr?"EFR":"FR", *n_errors, *n_bits_total); return len; } -- cgit v1.2.3