summaryrefslogtreecommitdiffstats
path: root/tests/coding/coding_test.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-26 11:48:00 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-26 12:26:38 +0100
commit6950b191e84c73687f9dc77462ff66cbeaec5686 (patch)
treea86f13e43837229d5231064897b3c983631b1e5a /tests/coding/coding_test.c
parent175a4ae93aaf1068b61041dca12962059d65ed55 (diff)
coding: Add BER-reporting RACH decode functions
For all other decode operations we report the BER, but not for the RACH. This results in osmo-bts-trx not being able to report BER to the higher layers, which is possible on other BTS backends. Let's close this gap by introducing gsm0503_rach_ext_decode_ber() and gsm0503_rach_decode_ber() with the usual n_errors / n_bits_total arguments. Change-Id: I2b1926a37bde860dcfeb0d613eb55a71271928c5
Diffstat (limited to 'tests/coding/coding_test.c')
-rw-r--r--tests/coding/coding_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/coding/coding_test.c b/tests/coding/coding_test.c
index 660f51fd..7b4f2a56 100644
--- a/tests/coding/coding_test.c
+++ b/tests/coding/coding_test.c
@@ -123,7 +123,7 @@ static void test_rach(uint8_t bsic, uint8_t ra)
memset(bursts_s + 6, 0, 8);
/* Decode, correcting errors */
- gsm0503_rach_decode(&result, bursts_s, bsic);
+ gsm0503_rach_decode_ber(&result, bursts_s, bsic, NULL, NULL);
printf("Decoded: %02x\n", result);
if (ra != result)
@@ -153,7 +153,7 @@ static void test_rach_ext(uint8_t bsic, uint16_t ra)
memset(bursts_s + 9, 0, 8);
/* Decode, correcting errors */
- gsm0503_rach_ext_decode(&result, bursts_s, bsic);
+ gsm0503_rach_ext_decode_ber(&result, bursts_s, bsic, NULL, NULL);
printf("Decoded: %02x\n", result);
if (ra != result)