From 61a06f4d36cf40c97bb6c08daccc84fe2beefe94 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 5 Mar 2020 05:01:18 +0700 Subject: [PATCH] trxcon/scheduler: fix n_errors for BFI triggered by FACCH These BFI (Bad Frame Indications) substitute speech frames stolen by FACCH/F or FACCH/H frames, so there can be no bit errors in something that was not even transmitted over the air interface. Change-Id: Icdb6209f75ead6581e3c18aeee0da9831aaa272a --- src/host/trxcon/sched_lchan_tchf.c | 4 +++- src/host/trxcon/sched_lchan_tchh.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/host/trxcon/sched_lchan_tchf.c b/src/host/trxcon/sched_lchan_tchf.c index 788d1532b..6531e11c1 100644 --- a/src/host/trxcon/sched_lchan_tchf.c +++ b/src/host/trxcon/sched_lchan_tchf.c @@ -155,7 +155,9 @@ bfi: .toa256 = 0, .rssi = -110, }; - n_errors = 116 * 4; + + /* No bursts => no errors */ + n_errors = 0; } /* BFI is not applicable in signalling mode */ diff --git a/src/host/trxcon/sched_lchan_tchh.c b/src/host/trxcon/sched_lchan_tchh.c index 013dba94d..e7037fe52 100644 --- a/src/host/trxcon/sched_lchan_tchh.c +++ b/src/host/trxcon/sched_lchan_tchh.c @@ -349,7 +349,9 @@ bfi: .toa256 = 0, .rssi = -110, }; - n_errors = 116 * 2; + + /* No bursts => no errors */ + n_errors = 0; } /* Calculate TDMA frame number of the first burst */