From 10aa1cd6f6e9a10741965991ecba2b0939e50542 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 5 Mar 2018 19:40:55 +0700 Subject: [PATCH] common/l1sap.c: increase the BTS_CTR_RACH_DROP in RACH BER check The BTS_CTR_RACH_DROP counter is being increased in case if a RACH request is ignored due to exceeding ToA value, but remains untouched in case of exceeding BER (Bit Error Rate). Let's fix this. Change-Id: Ia02e781d6c47d9d8012a4c8846fe4b731aab74d7 --- src/common/l1sap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 330b40a1e..f83c46de2 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -1207,6 +1207,7 @@ static int l1sap_ph_rach_ind(struct gsm_bts_trx *trx, if (rach_ind->ber10k > btsb->max_ber10k_rach) { DEBUGPFN(DL1C, rach_ind->fn, "ignoring RACH request: %u > %u (max BER)\n", rach_ind->ber10k, btsb->max_ber10k_rach); + rate_ctr_inc2(trx->bts->ctrs, BTS_CTR_RACH_DROP); return 0; }