From b777c0f3ecb8b770f032db449e947f0f9731de11 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 7 Jul 2019 20:00:53 +0700 Subject: Move Access Burst link quality handling to L1SAP Change-Id: I893ec9c6c2ebad71ea68b2dc5f9f5094dfc43b78 Depends: (libosmocore) Ie2a66ebd040b61d6daf49e04bf8a84d3d64764ee --- src/common/l1sap.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common/l1sap.c') diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 79af8e21..f07e79ca 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -1272,6 +1272,14 @@ static bool rach_pass_filter(struct ph_rach_ind_param *rach_ind, struct gsm_bts return false; } + /* Link quality defined by C/I (Carrier-to-Interference ratio) */ + if (rach_ind->lqual_cb < bts->min_qual_rach) { + LOGPFN(DL1C, LOGL_INFO, rach_ind->fn, "Ignoring RACH request: " + "link quality (%d) below the minimum (%d)\n", + rach_ind->lqual_cb, bts->min_qual_rach); + return false; + } + return true; } -- cgit v1.2.3