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
This commit is contained in:
Vadim Yanitskiy 2018-03-05 19:40:55 +07:00
parent 8a28868b29
commit 10aa1cd6f6
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}