aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-06-14 23:49:16 -0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-07-20 20:09:44 -0400
commit9ab991191b901b362bc2bd3f6e78c600000a662d (patch)
tree89e3e6672eeaf329299600451905700abbeb5ae6
parent0b305633d6dad11357d23cf39759693c602a80ec (diff)
HACK: Do not discard GSM-FR frames with bad CRC.achemeris/loopback
-rw-r--r--src/osmo-bts-trx/gsm0503_coding.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/gsm0503_coding.c b/src/osmo-bts-trx/gsm0503_coding.c
index 0b90174..97a7f00 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;
}