diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-10-22 01:41:10 +0300 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-10-22 02:51:36 +0300 |
commit | dffb6fac252b5a74bf70ce0e09ab4c3e53ac555f (patch) | |
tree | 2726a58869ed4d9d0ab7e0d907d98581dc522ef2 | |
parent | 45094096b13e1dae2d7d697a3b220321322cca0e (diff) |
measurement: make sure that DL measurements are valid
In repeated_dl_facch_active_decision() we rely on the Measurement
Report message, that in some cases may not contain valid Downlink
measurements. In this case, we should simply ignore it.
Change-Id: I0d72b454f2b770d5762303fb70a15a8cdc9d07d7
Related: SYS#5114
-rw-r--r-- | src/common/measurement.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/measurement.c b/src/common/measurement.c index 3a178691..626f3b15 100644 --- a/src/common/measurement.c +++ b/src/common/measurement.c @@ -833,6 +833,8 @@ static void repeated_dl_facch_active_decision(struct gsm_lchan *lchan, if (gh->msg_type != GSM48_MT_RR_MEAS_REP) goto out; meas_res = (const struct gsm48_meas_res *) gh->data; + if (meas_res->meas_valid != 0) /* 0 = valid */ + goto out; /* If the RXQUAL level at the MS drops under a certain threshold * we enable FACCH repetition. */ |