aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
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;
}