aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-07-07 20:00:53 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-07-21 21:55:51 +0700
commitb777c0f3ecb8b770f032db449e947f0f9731de11 (patch)
treeba1e306cae248c4171b3b2e98e63904b4e3f9770 /src/common/l1sap.c
parent9649a42d5a3c24a21c14bb9f54e7c34a398da7b1 (diff)
Move Access Burst link quality handling to L1SAP
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c8
1 files changed, 8 insertions, 0 deletions
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;
}